mirror of
https://github.com/nzp-team/quakec.git
synced 2024-11-22 03:41:15 +00:00
SERVER: Fix actions being looped while holding Flamethrower
This commit is contained in:
parent
9ae20b3487
commit
bcc6131f2e
1 changed files with 2 additions and 2 deletions
|
@ -1939,7 +1939,7 @@ void() CheckPlayer =
|
|||
void () Weapon_Logic =
|
||||
{
|
||||
// HACK HACK: Don't let the frame updater take control of hold fire.
|
||||
if (self.weaponframe == GetFrame(self.weapon, FIRE_HOLD) && GetFrame(self.weapon, FIRE_HOLD) != 0 && !self.isBuying) {
|
||||
if (self.weaponframe == GetFrame(self.weapon, FIRE_HOLD) && GetFrame(self.weapon, FIRE_HOLD) != 0 && self.weaponmodel == GetWeaponModel(self.weapon, 0)) {
|
||||
|
||||
} else {
|
||||
W_Frame_Update();
|
||||
|
@ -2059,7 +2059,7 @@ void () Weapon_Logic =
|
|||
|
||||
// Hold fire weapons should get set back to base frame.
|
||||
if (GetFrame(self.weapon, FIRE_HOLD) != 0 && self.weaponframe == GetFrame(self.weapon, FIRE_HOLD) &&
|
||||
!self.isBuying) {
|
||||
self.weaponmodel == GetWeaponModel(self.weapon, 0)) {
|
||||
self.weaponframe = 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue