diff --git a/polymer/eduke32/source/gamedef.c b/polymer/eduke32/source/gamedef.c index 0b43220f0..c2bef6bf0 100644 --- a/polymer/eduke32/source/gamedef.c +++ b/polymer/eduke32/source/gamedef.c @@ -1109,6 +1109,7 @@ const memberlabel_t UserdefsLabels[]= { "show_level_text", USERDEFS_SHOW_LEVEL_TEXT, 0, 0 }, { "weaponscale", USERDEFS_WEAPONSCALE, 0, 0 }, { "textscale", USERDEFS_TEXTSCALE, 0, 0 }, + { "runkey_mode", USERDEFS_RUNKEY_MODE, 0, 0 }, { "", -1, 0, 0 } // END OF LIST }; diff --git a/polymer/eduke32/source/gamedef.h b/polymer/eduke32/source/gamedef.h index 94d818341..1d9bfff9d 100644 --- a/polymer/eduke32/source/gamedef.h +++ b/polymer/eduke32/source/gamedef.h @@ -419,6 +419,7 @@ enum UserdefsLabel_t USERDEFS_SHOW_LEVEL_TEXT, USERDEFS_WEAPONSCALE, USERDEFS_TEXTSCALE, + USERDEFS_RUNKEY_MODE, USERDEFS_END }; diff --git a/polymer/eduke32/source/gamestructures.c b/polymer/eduke32/source/gamestructures.c index 72193bcc3..51a8f6ac1 100644 --- a/polymer/eduke32/source/gamestructures.c +++ b/polymer/eduke32/source/gamestructures.c @@ -906,6 +906,15 @@ static void __fastcall VM_AccessUserdef(int32_t iSet, int32_t lLabelID, int32_t Gv_SetVarX(lVar2, ud.textscale); return; + case USERDEFS_RUNKEY_MODE: + if (iSet) + { + ud.runkey_mode = lValue; + return; + } + Gv_SetVarX(lVar2, ud.runkey_mode); + return; + default: return; }