diff --git a/source/games/duke/src/inlines.h b/source/games/duke/src/inlines.h index b710c4c4e..ba7f25871 100644 --- a/source/games/duke/src/inlines.h +++ b/source/games/duke/src/inlines.h @@ -111,11 +111,6 @@ inline bool PlayerInput(int pl, ESyncBits 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) { getPlayer(pl)->cmd.ucmd.setItemUsed(num - 1); diff --git a/source/games/duke/src/input.cpp b/source/games/duke/src/input.cpp index de433d33c..9593739a4 100644 --- a/source/games/duke/src/input.cpp +++ b/source/games/duke/src/input.cpp @@ -108,7 +108,7 @@ void hud_input(int plnum) } 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; else if (p->interface_toggle_flag == 0) {