- fix RedNukem input.

This commit is contained in:
Christoph Oelckers 2019-09-19 01:10:07 +02:00
parent 412f3a0b32
commit 0168b9ddf2

View file

@ -750,10 +750,15 @@ static int32_t osdcmd_name(osdfuncparm_t const * const parm)
static int32_t osdcmd_button(osdfuncparm_t const * const parm)
{
char const *p = parm->name+9; // skip "gamefunc_"
// if (g_player[myconnectindex].ps->gm == MODE_GAME) // only trigger these if in game
//CONTROL_OSDInput[CONFIG_FunctionNameToNum(p)] = 1; // FIXME
return OSDCMD_OK;
static char const s_gamefunc_[] = "gamefunc_";
int constexpr strlen_gamefunc_ = ARRAY_SIZE(s_gamefunc_) - 1;
char const* p = parm->name + strlen_gamefunc_;
// if (g_player[myconnectindex].ps->gm == MODE_GAME) // only trigger these if in game
CONTROL_ButtonFlags[CONFIG_FunctionNameToNum(p)] = 1; // FIXME
return OSDCMD_OK;
}
const keydef_t ConsoleKeys[]=