- Duke: Remove PlayerInputBits() wrapper.

This commit is contained in:
Mitchell Richters 2023-10-03 19:19:28 +11:00 committed by Christoph Oelckers
parent 97504df124
commit 14cf143739
2 changed files with 1 additions and 6 deletions

View file

@ -111,11 +111,6 @@ inline bool PlayerInput(int pl, ESyncBits bit)
return (!!((getPlayer(pl)->cmd.ucmd.actions) & bit)); return (!!((getPlayer(pl)->cmd.ucmd.actions) & bit));
} }
inline ESyncBits PlayerInputBits(int pl, ESyncBits bits)
{
return (getPlayer(pl)->cmd.ucmd.actions & bits);
}
inline void PlayerSetItemUsed(int pl, int num) inline void PlayerSetItemUsed(int pl, int num)
{ {
getPlayer(pl)->cmd.ucmd.setItemUsed(num - 1); getPlayer(pl)->cmd.ucmd.setItemUsed(num - 1);

View file

@ -108,7 +108,7 @@ void hud_input(int plnum)
} }
if (!PlayerInput(plnum, SB_QUICK_KICK)) p->quick_kick_msg = false; if (!PlayerInput(plnum, SB_QUICK_KICK)) p->quick_kick_msg = false;
if (!PlayerInputBits(plnum, SB_INTERFACE_BITS)) if (!(p->cmd.ucmd.actions & SB_INTERFACE_BITS))
p->interface_toggle_flag = 0; p->interface_toggle_flag = 0;
else if (p->interface_toggle_flag == 0) else if (p->interface_toggle_flag == 0)
{ {