mirror of
https://github.com/nzp-team/quakec.git
synced 2024-11-26 13:51:01 +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,7 +162,8 @@ void () W_Frame_Update =
|
|||
temp(S_RIGHT);
|
||||
}
|
||||
|
||||
W2_Frame_Update();
|
||||
if (!IsDualWeapon(self.weapon))
|
||||
W2_Frame_Update();
|
||||
};
|
||||
|
||||
float(string path) model_should_hide_weapon2 =
|
||||
|
|
Loading…
Reference in a new issue