From: Mario Date: Fri, 10 May 2013 04:21:46 +0000 (+1000) Subject: Fix extra life powerup giving infinite lives in lms & minstagib X-Git-Tag: xonotic-v0.7.0~55^2 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=6da43def85c45064172b55faaa8cd811f22ae179;p=xonotic%2Fxonotic-data.pk3dir.git Fix extra life powerup giving infinite lives in lms & minstagib --- diff --git a/qcsrc/server/t_items.qc b/qcsrc/server/t_items.qc index 3471ce1b0..957e421e3 100644 --- a/qcsrc/server/t_items.qc +++ b/qcsrc/server/t_items.qc @@ -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