Skip to content

Commit

Permalink
Blood: Fix shotgun akimbo frame bug
Browse files Browse the repository at this point in the history
  • Loading branch information
tmyqlfpir authored Dec 16, 2024
1 parent b08eb7e commit bd5955c
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion source/blood/src/weapon.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,12 @@ void WeaponDraw(PLAYER *pPlayer, int a2, int x, int y, int a5)
QAV * pQAV = weaponQAV[pPlayer->weaponQav];
int v4;
if (pPlayer->weaponTimer == 0)
v4 = (int)totalclock % pQAV->at10;
{
if (((pPlayer->weaponState == -1) || (pPlayer->curWeapon == kWeaponShotgun && pPlayer->weaponState == 7)) && !VanillaMode()) // if shotgun with guns akimbo, or ran out of ammo, set to last seq frame
v4 = pQAV->at10-1;
else
v4 = (int)totalclock % pQAV->at10;
}
else
v4 = pQAV->at10 - pPlayer->weaponTimer;
pQAV->x = x;
Expand Down

0 comments on commit bd5955c

Please sign in to comment.