From: Mario Date: Wed, 5 Jun 2013 06:21:53 +0000 (+1000) Subject: Fix spectators throwing nades X-Git-Tag: xonotic-v0.8.0~366^2~25^2~4 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=68b934732922a7134b4a8053299ccd637155ff4d;p=xonotic%2Fxonotic-data.pk3dir.git Fix spectators throwing nades --- diff --git a/qcsrc/server/mutators/mutator_nades.qc b/qcsrc/server/mutators/mutator_nades.qc index 832debd0a..591fcc9dc 100644 --- a/qcsrc/server/mutators/mutator_nades.qc +++ b/qcsrc/server/mutators/mutator_nades.qc @@ -211,6 +211,9 @@ float CanThrowNade() if(forbidWeaponUse()) return FALSE; + if not(IS_PLAYER(self)) + return FALSE; + return TRUE; }