mirror of
https://github.com/DrBeef/Raze.git
synced 2025-01-18 15:11:51 +00:00
CON access to ud.runkey_mode through get/setuserdef
git-svn-id: https://svn.eduke32.com/eduke32@3071 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
521ee43173
commit
bc9a29b121
3 changed files with 11 additions and 0 deletions
|
@ -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
|
||||
};
|
||||
|
||||
|
|
|
@ -419,6 +419,7 @@ enum UserdefsLabel_t
|
|||
USERDEFS_SHOW_LEVEL_TEXT,
|
||||
USERDEFS_WEAPONSCALE,
|
||||
USERDEFS_TEXTSCALE,
|
||||
USERDEFS_RUNKEY_MODE,
|
||||
USERDEFS_END
|
||||
};
|
||||
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue