mirror of
https://github.com/ZDoom/Raze.git
synced 2024-11-30 07:50:54 +00:00
- Duke: Remove PlayerNewWeapon()
wrapper.
This commit is contained in:
parent
af99ba9ae2
commit
7cd1780004
2 changed files with 1 additions and 7 deletions
|
@ -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);
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue