]> git.rm.cloudns.org Git - voretournament/voretournament.git/commitdiff
Fix for g_weapon_stay 3
authorMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Wed, 8 Sep 2010 10:11:59 +0000 (13:11 +0300)
committerMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Wed, 8 Sep 2010 10:11:59 +0000 (13:11 +0300)
data/qcsrc/server/t_items.qc

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