- Duke: Remove PlayerNewWeapon() wrapper.

This commit is contained in:
Mitchell Richters 2023-10-03 19:05:14 +11:00
parent af99ba9ae2
commit 7cd1780004
2 changed files with 1 additions and 7 deletions

View file

@ -121,12 +121,6 @@ inline void PlayerSetInput(int pl, ESyncBits bit)
getPlayer(pl)->cmd.ucmd.actions |= bit;
}
inline int PlayerNewWeapon(int pl)
{
return getPlayer(pl)->cmd.ucmd.getNewWeapon();
}
inline void PlayerSetItemUsed(int pl, int num)
{
getPlayer(pl)->cmd.ucmd.setItemUsed(num - 1);

View file

@ -243,7 +243,7 @@ void hud_input(int plnum)
if (dainv >= 1 && dainv < 8) FTA(invquotes[dainv - 1], p);
}
int weap = PlayerNewWeapon(plnum);
int weap = p->cmd.ucmd.getNewWeapon();
if (weap > 1 && p->kickback_pic > 0)
p->wantweaponfire = weap - 1;