mirror of
https://github.com/ZDoom/Raze.git
synced 2025-02-01 04:40:46 +00:00
- Duke: Remove PlayerSetInput()
wrapper.
This commit is contained in:
parent
7cd1780004
commit
ec5cc18470
3 changed files with 2 additions and 7 deletions
|
@ -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);
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue