Don't perform a switch back to the last full weapon when switching to an empty weapon if the player happened to pick up ammo for the weapon during the time it took to ready it.

git-svn-id: https://svn.eduke32.com/eduke32@124 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
terminx 2006-04-29 06:45:46 +00:00
parent 76af69d72d
commit 0d9f8199cd

View file

@ -4413,7 +4413,7 @@ HORIZONLY:
if(p->show_empty_weapon > 0)
{
p->show_empty_weapon--;
if(p->show_empty_weapon == 0 && (p->weaponswitch & 2))
if(p->show_empty_weapon == 0 && (p->weaponswitch & 2) && p->ammo_amount[p->curr_weapon] <= 0)
{
if(p->last_full_weapon == GROW_WEAPON)
p->subweapon |= (1<<GROW_WEAPON);