CON: Add read-only access to ud.config.MusicToggle through the "musictoggle" member.

git-svn-id: https://svn.eduke32.com/eduke32@4970 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
hendricks266 2015-02-08 08:04:09 +00:00
parent b355d75ab3
commit e8f842ac28
4 changed files with 4 additions and 0 deletions

View file

@ -1125,6 +1125,7 @@ const memberlabel_t UserdefsLabels[]=
{ "weaponscale", USERDEFS_WEAPONSCALE, 0, 0 },
{ "textscale", USERDEFS_TEXTSCALE, 0, 0 },
{ "runkey_mode", USERDEFS_RUNKEY_MODE, 0, 0 },
{ "musictoggle", USERDEFS_MUSICTOGGLE, 0, 0 },
{ "", -1, 0, 0 } // END OF LIST
};

View file

@ -430,6 +430,7 @@ enum UserdefsLabel_t
USERDEFS_M_ORIGIN_X,
USERDEFS_M_ORIGIN_Y,
USERDEFS_PLAYERBEST,
USERDEFS_MUSICTOGGLE,
USERDEFS_END
};

View file

@ -252,6 +252,7 @@ static void __fastcall VM_AccessUserdef(int32_t iSet, int32_t lLabelID, int32_t
case USERDEFS_M_ORIGIN_X: lLabelID = ud.m_origin.x; break;
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;
default: lLabelID = -1; break;
}
Gv_SetVarX(lVar2, lLabelID);

View file

@ -875,6 +875,7 @@ local UserdefLabels = {
playerbest = UDRO".playerbest",
mouseflip = UDRO".mouseflip",
multimode = { "1" },
musictoggle = UDRO".config.MusicToggle",
noexits = UDRO".noexits",
overhead_on = UD".overhead_on",
recstat = UDRO".recstat",