Amend r7993

git-svn-id: https://svn.eduke32.com/eduke32@7996 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
hendricks266 2019-08-14 05:38:42 +00:00 committed by Christoph Oelckers
parent 446186d49a
commit addc919636

View file

@ -1131,7 +1131,8 @@ void CONFIG_WriteSetup(uint32_t flags)
char const * CONFIG_GetGameFuncOnKeyboard(int gameFunc)
{
return KB_ScanCodeToString(ud.config.KeyboardKeys[gameFunc][0]);
const char * string0 = KB_ScanCodeToString(ud.config.KeyboardKeys[gameFunc][0]);
return string0[0] == '\0' ? KB_ScanCodeToString(ud.config.KeyboardKeys[gameFunc][1]) : string0;
}
char const * CONFIG_GetGameFuncOnMouse(int gameFunc)