diff --git a/polymer/eduke32/source/gamedef.c b/polymer/eduke32/source/gamedef.c index 29f81becc..e29693149 100644 --- a/polymer/eduke32/source/gamedef.c +++ b/polymer/eduke32/source/gamedef.c @@ -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 }, diff --git a/polymer/eduke32/source/gamedef.h b/polymer/eduke32/source/gamedef.h index 800683326..cdb88bd28 100644 --- a/polymer/eduke32/source/gamedef.h +++ b/polymer/eduke32/source/gamedef.h @@ -435,6 +435,9 @@ enum UserdefsLabel_t USERDEFS_M_ORIGIN_Y, USERDEFS_PLAYERBEST, USERDEFS_MUSICTOGGLE, + USERDEFS_USEVOXELS, + USERDEFS_USEHIGHTILE, + USERDEFS_USEMODELS, USERDEFS_END }; diff --git a/polymer/eduke32/source/gamestructures.c b/polymer/eduke32/source/gamestructures.c index 3e2ae1431..12c3ecbe1 100644 --- a/polymer/eduke32/source/gamestructures.c +++ b/polymer/eduke32/source/gamestructures.c @@ -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);