- RR: fixed weapon switching code.

This commit is contained in:
Christoph Oelckers 2022-11-13 19:47:10 +01:00
parent f23ddc28f0
commit 36f753df8f

View file

@ -3945,12 +3945,14 @@ HORIZONLY:
//Shooting code/changes
if (p->show_empty_weapon > 0)
{
p->show_empty_weapon--;
if (p->show_empty_weapon == 0 && (WeaponSwitch(p - ps) & 2))
{
fi.addweapon(p, p->last_full_weapon, true);
return;
if (p->show_empty_weapon == 0 && (WeaponSwitch(p - ps) & 2))
{
fi.addweapon(p, p->last_full_weapon, true);
return;
}
}
dokneeattack(snum, { FEM10, NAKED1, STATUE });