]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
bring back the laser in Race
authorFruitieX <fruitiex@gmail.com>
Thu, 9 Dec 2010 20:31:46 +0000 (22:31 +0200)
committerFruitieX <fruitiex@gmail.com>
Thu, 9 Dec 2010 20:31:46 +0000 (22:31 +0200)
qcsrc/server/miscfunctions.qc

index 32d9bc176012e912d9f316fe66c0b07b52c17f89..4eb29e17acf645e5e72291dcef23bd2d4bf98571 100644 (file)
@@ -880,7 +880,9 @@ float want_weapon(string cvarprefix, entity weaponinfo, float allguns)
                        t = (weaponinfo.spawnflags & WEP_FLAG_NORMAL);
                else if(t < -1)
                        t = 0;
-               else if (g_race || g_cts)
+               else if (g_race)
+                       t = (i == WEP_LASER || i == WEP_SHOTGUN);
+               else if (g_cts)
                        t = (i == WEP_SHOTGUN);
                else if (g_nexball)
                        t = 0; // weapon is set a few lines later