From: terencehill Date: Thu, 5 Apr 2012 12:38:16 +0000 (+0200) Subject: freezetag, fix for this issue: if the player press the jump button when frozen he... X-Git-Tag: xonotic-v0.7.0~269^2~2 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=1776c33992eb921a8cd6aa4ae419d6c827357869;p=xonotic%2Fxonotic-data.pk3dir.git freezetag, fix for this issue: if the player press the jump button when frozen he's not supposed to jump but the jump animation is played even if he actually doesn't jump. --- diff --git a/qcsrc/server/cl_player.qc b/qcsrc/server/cl_player.qc index 5a1627423..f2a9a7259 100644 --- a/qcsrc/server/cl_player.qc +++ b/qcsrc/server/cl_player.qc @@ -271,7 +271,9 @@ void player_anim (void) if (!self.animstate_override) { - if (!(self.flags & FL_ONGROUND) || self.BUTTON_JUMP) + if (self.freezetag_frozen) + setanim(self, self.anim_idle, TRUE, FALSE, FALSE); + else if (!(self.flags & FL_ONGROUND) || self.BUTTON_JUMP) { if (self.crouch) {