- fix RedNukem input.

This commit is contained in:
Christoph Oelckers 2019-09-19 01:10:07 +02:00
parent 412f3a0b32
commit 0168b9ddf2
1 changed files with 9 additions and 4 deletions

View File

@ -750,9 +750,14 @@ 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_"
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_OSDInput[CONFIG_FunctionNameToNum(p)] = 1; // FIXME
CONTROL_ButtonFlags[CONFIG_FunctionNameToNum(p)] = 1; // FIXME
return OSDCMD_OK;
}