mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-24 02:30:46 +00:00
C-CON: Add read-only userdef members "usevoxels", "usehightile", and "usemodels".
git-svn-id: https://svn.eduke32.com/eduke32@5043 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
d5ed8aa728
commit
d7409a5a95
3 changed files with 20 additions and 0 deletions
|
@ -1073,6 +1073,10 @@ const memberlabel_t UserdefsLabels[]=
|
|||
{ "m_origin_x", USERDEFS_M_ORIGIN_X, 0, 0 },
|
||||
{ "m_origin_y", USERDEFS_M_ORIGIN_Y, 0, 0 },
|
||||
|
||||
{ "usevoxels", USERDEFS_USEVOXELS, 0, 0 },
|
||||
{ "usehightile", USERDEFS_USEHIGHTILE, 0, 0 },
|
||||
{ "usemodels", USERDEFS_USEMODELS, 0, 0 },
|
||||
|
||||
{ "entered_name", USERDEFS_ENTERED_NAME, 0, 0 },
|
||||
{ "screen_tilting", USERDEFS_SCREEN_TILTING, 0, 0 },
|
||||
{ "shadows", USERDEFS_SHADOWS, 0, 0 },
|
||||
|
|
|
@ -435,6 +435,9 @@ enum UserdefsLabel_t
|
|||
USERDEFS_M_ORIGIN_Y,
|
||||
USERDEFS_PLAYERBEST,
|
||||
USERDEFS_MUSICTOGGLE,
|
||||
USERDEFS_USEVOXELS,
|
||||
USERDEFS_USEHIGHTILE,
|
||||
USERDEFS_USEMODELS,
|
||||
USERDEFS_END
|
||||
};
|
||||
|
||||
|
|
|
@ -253,6 +253,19 @@ static void __fastcall VM_AccessUserdef(int32_t iSet, int32_t lLabelID, int32_t
|
|||
case USERDEFS_M_ORIGIN_Y: lLabelID = ud.m_origin.y; break;
|
||||
case USERDEFS_PLAYERBEST: lLabelID = ud.playerbest; break;
|
||||
case USERDEFS_MUSICTOGGLE: lLabelID = ud.config.MusicToggle; break;
|
||||
case USERDEFS_USEVOXELS: lLabelID = usevoxels; break;
|
||||
case USERDEFS_USEHIGHTILE:
|
||||
#ifdef USE_OPENGL
|
||||
lLabelID = usehightile;
|
||||
break;
|
||||
#endif
|
||||
case USERDEFS_USEMODELS:
|
||||
#ifdef USE_OPENGL
|
||||
lLabelID = usemodels;
|
||||
#else
|
||||
lLabelID = 0;
|
||||
#endif
|
||||
break;
|
||||
default: lLabelID = -1; break;
|
||||
}
|
||||
Gv_SetVarX(lVar2, lLabelID);
|
||||
|
|
Loading…
Reference in a new issue