mirror of
https://github.com/ZDoom/Raze.git
synced 2025-01-19 15:11:04 +00:00
- Duke: Remove PlayerInputBits()
wrapper.
This commit is contained in:
parent
97504df124
commit
14cf143739
2 changed files with 1 additions and 6 deletions
|
@ -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);
|
||||||
|
|
|
@ -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)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue