- Duke: Remove PlayerSetInput() wrapper.

This commit is contained in:
Mitchell Richters 2023-10-03 19:07:47 +11:00
parent 7cd1780004
commit ec5cc18470
3 changed files with 2 additions and 7 deletions

View file

@ -116,11 +116,6 @@ inline ESyncBits PlayerInputBits(int pl, ESyncBits bits)
return (getPlayer(pl)->cmd.ucmd.actions & bits);
}
inline void PlayerSetInput(int pl, ESyncBits bit)
{
getPlayer(pl)->cmd.ucmd.actions |= bit;
}
inline void PlayerSetItemUsed(int pl, int num)
{
getPlayer(pl)->cmd.ucmd.setItemUsed(num - 1);

View file

@ -284,7 +284,7 @@ void selectweapon_d(int snum, int weap) // playernum, weaponnum
if (p->holster_weapon)
{
PlayerSetInput(snum, SB_HOLSTER);
p->cmd.ucmd.actions |= SB_HOLSTER;
p->oweapon_pos = p->weapon_pos = -9;
}
else if (j >= MIN_WEAPON && p->gotweapon[j] && p->curr_weapon != j) switch (j)

View file

@ -262,7 +262,7 @@ void selectweapon_r(int snum, int weap)
if (p->holster_weapon)
{
PlayerSetInput(snum, SB_HOLSTER);
p->cmd.ucmd.actions |= SB_HOLSTER;
p->oweapon_pos = p->weapon_pos = -9;
}
else if (j >= MIN_WEAPON && p->gotweapon[j] && p->curr_weapon != j) switch (j)