mirror of
https://github.com/nzp-team/quakec.git
synced 2024-11-22 20:01:34 +00:00
SERVER: Restore dual wield frame updates
This commit is contained in:
parent
33de260a56
commit
e1a11cbcb7
1 changed files with 5 additions and 3 deletions
|
@ -108,10 +108,11 @@ void () W_Frame_Update =
|
|||
if (self.anim_weapon_time > time)
|
||||
return; //don't call every frame, if it is the animations will play too fast
|
||||
|
||||
if (IsDualWeapon(self.weapon))
|
||||
W2_Frame_Update();
|
||||
|
||||
self.anim_weapon_time = time + self.weapon_animduration;
|
||||
|
||||
|
||||
|
||||
if (self.weaponframe != self.weaponframe_end && !self.anim_reversed)
|
||||
{ // continue an animation
|
||||
|
||||
|
@ -161,6 +162,7 @@ void () W_Frame_Update =
|
|||
temp(S_RIGHT);
|
||||
}
|
||||
|
||||
if (!IsDualWeapon(self.weapon))
|
||||
W2_Frame_Update();
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue