]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Fix for g_weapon_stay 3
authorMircea Kitsune <sonichedgehog_hyperblast00@yahoo.com>
Wed, 8 Sep 2010 10:11:49 +0000 (13:11 +0300)
committerMircea Kitsune <sonichedgehog_hyperblast00@yahoo.com>
Wed, 8 Sep 2010 10:11:49 +0000 (13:11 +0300)
qcsrc/server/t_items.qc

index 1b6c21710df3cd78b309b35a0756e70ea4f43d5c..c71cc6ac70e025370c6ce92c71c1216d528c0a26 100644 (file)
@@ -94,7 +94,7 @@ void Item_Show (entity e, float mode)
 
                e.spawnshieldtime = 1;
        }
-       else if((e.flags & FL_WEAPON) && (g_weapon_stay == 3))
+       else if((e.flags & FL_WEAPON) && (g_weapon_stay == 3 && self.respawntime > 0)) // if respawntime is -1, this item does not respawn
        {
                // make the item translucent green and not touchable
                e.model = e.mdl;