From: Mario Date: Tue, 4 Jun 2013 19:44:11 +0000 (+1000) Subject: Remove a useless health check X-Git-Tag: xonotic-v0.7.0~6^2~1 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=58aebcc42ed23b160239e872a5998ba4bfe45593;p=xonotic%2Fxonotic-data.pk3dir.git Remove a useless health check --- diff --git a/qcsrc/server/mutators/mutator_minstagib.qc b/qcsrc/server/mutators/mutator_minstagib.qc index 021a2b083..872a2a9e9 100644 --- a/qcsrc/server/mutators/mutator_minstagib.qc +++ b/qcsrc/server/mutators/mutator_minstagib.qc @@ -26,7 +26,7 @@ void minstagib_stop_countdown(entity e) Kill_Notification(NOTIF_ONE_ONLY, e, MSG_CENTER_CPID, CPID_MINSTA_FINDAMMO); e.minstagib_needammo = FALSE; } -void minstagib_ammocheck(void) +void minstagib_ammocheck() { if not(IS_PLAYER(self)) return; // not a player @@ -202,9 +202,6 @@ MUTATOR_HOOKFUNCTION(minstagib_SplitHealthArmor) MUTATOR_HOOKFUNCTION(minstagib_ForbidThrowing) { - if (self.health < 1) - return FALSE; - return TRUE; }