mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-24 10:40:46 +00:00
C-CON: Add read-only userdef members "gametypeflags" and "m_gametypeflags", which return GametypeFlags[ud.coop] and GametypeFlags[ud.m_coop] respectively.
git-svn-id: https://svn.eduke32.com/eduke32@5044 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
d7409a5a95
commit
c86bd80dd7
3 changed files with 6 additions and 0 deletions
|
@ -1143,6 +1143,8 @@ const memberlabel_t UserdefsLabels[]=
|
|||
{ "textscale", USERDEFS_TEXTSCALE, 0, 0 },
|
||||
{ "runkey_mode", USERDEFS_RUNKEY_MODE, 0, 0 },
|
||||
{ "musictoggle", USERDEFS_MUSICTOGGLE, 0, 0 },
|
||||
{ "gametypeflags", USERDEFS_GAMETYPEFLAGS, 0, 0 },
|
||||
{ "m_gametypeflags", USERDEFS_M_GAMETYPEFLAGS, 0, 0 },
|
||||
{ "", -1, 0, 0 } // END OF LIST
|
||||
};
|
||||
|
||||
|
|
|
@ -438,6 +438,8 @@ enum UserdefsLabel_t
|
|||
USERDEFS_USEVOXELS,
|
||||
USERDEFS_USEHIGHTILE,
|
||||
USERDEFS_USEMODELS,
|
||||
USERDEFS_GAMETYPEFLAGS,
|
||||
USERDEFS_M_GAMETYPEFLAGS,
|
||||
USERDEFS_END
|
||||
};
|
||||
|
||||
|
|
|
@ -266,6 +266,8 @@ static void __fastcall VM_AccessUserdef(int32_t iSet, int32_t lLabelID, int32_t
|
|||
lLabelID = 0;
|
||||
#endif
|
||||
break;
|
||||
case USERDEFS_GAMETYPEFLAGS: lLabelID = GametypeFlags[ud.coop]; break;
|
||||
case USERDEFS_M_GAMETYPEFLAGS: lLabelID = GametypeFlags[ud.m_coop]; break;
|
||||
default: lLabelID = -1; break;
|
||||
}
|
||||
Gv_SetVarX(lVar2, lLabelID);
|
||||
|
|
Loading…
Reference in a new issue