]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
force weapon stay on in CTS
authorFruitieX <fruitiex@gmail.com>
Thu, 9 Dec 2010 20:43:36 +0000 (22:43 +0200)
committerFruitieX <fruitiex@gmail.com>
Thu, 9 Dec 2010 20:43:36 +0000 (22:43 +0200)
qcsrc/server/miscfunctions.qc

index 4eb29e17acf645e5e72291dcef23bd2d4bf98571..7eb10de0f736c0e974b3dd20def2a09203027c1e 100644 (file)
@@ -1297,6 +1297,9 @@ void readlevelcvars(void)
        if (!g_weapon_stay && (cvar("deathmatch") == 2))
                g_weapon_stay = 1;
 
+       if (!g_weapon_stay && g_cts)
+               g_weapon_stay = 1;
+
        g_ghost_items = cvar("g_ghost_items");
 
        if(g_ghost_items >= 1)