]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Fix spectators throwing nades
authorMario <mario.mario@y7mail.com>
Wed, 5 Jun 2013 06:21:53 +0000 (16:21 +1000)
committerMario <mario.mario@y7mail.com>
Wed, 5 Jun 2013 06:21:53 +0000 (16:21 +1000)
qcsrc/server/mutators/mutator_nades.qc

index 832debd0aade6187f34365dfbd6d4a695630e84e..591fcc9dca998c6731f10dc3cbd09c2b48fa5873 100644 (file)
@@ -211,6 +211,9 @@ float CanThrowNade()
        if(forbidWeaponUse())
                return FALSE;
                
+       if not(IS_PLAYER(self))
+               return FALSE;
+               
        return TRUE;
 }