Fix extra life powerup giving infinite lives in lms & minstagib
authorMario <mario.mario@y7mail.com>
Fri, 10 May 2013 04:21:46 +0000 (14:21 +1000)
committerMario <mario.mario@y7mail.com>
Fri, 10 May 2013 04:21:46 +0000 (14:21 +1000)
qcsrc/server/t_items.qc

index 3471ce1b046fd54dc00a8b12dad110e22115360c..957e421e34279a437c2ce5ee32893d82f26a44be 100644 (file)
@@ -651,6 +651,11 @@ float Item_GiveTo(entity item, entity player)
                pickedup = TRUE;
                player.superweapons_finished = max(player.superweapons_finished, time) + item.superweapons_finished;
        }
+       if (item.max_health)
+       {
+               pickedup = TRUE;
+               // extra life powerup handled by mutators
+       }
 
 :skip