mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-25 03:00:46 +00:00
CON: Add userdef[].soundtoggle. Read-only.
git-svn-id: https://svn.eduke32.com/eduke32@5553 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
344e10628f
commit
c1f67576a4
3 changed files with 3 additions and 0 deletions
|
@ -1177,6 +1177,7 @@ const memberlabel_t UserdefsLabels[]=
|
|||
{ "vm_player", USERDEFS_VM_PLAYER, 0, 0 },
|
||||
{ "vm_sprite", USERDEFS_VM_SPRITE, 0, 0 },
|
||||
{ "vm_distance", USERDEFS_VM_DISTANCE, 0, 0 },
|
||||
{ "soundtoggle", USERDEFS_SOUNDTOGGLE, 0, 0 },
|
||||
{ "", -1, 0, 0 } // END OF LIST
|
||||
};
|
||||
|
||||
|
|
|
@ -479,6 +479,7 @@ enum UserdefsLabel_t
|
|||
USERDEFS_VM_PLAYER,
|
||||
USERDEFS_VM_SPRITE,
|
||||
USERDEFS_VM_DISTANCE,
|
||||
USERDEFS_SOUNDTOGGLE,
|
||||
USERDEFS_END
|
||||
};
|
||||
|
||||
|
|
|
@ -173,6 +173,7 @@ int32_t __fastcall VM_GetUserdef(register int32_t lLabelID)
|
|||
case USERDEFS_VM_PLAYER: lLabelID = vm.g_p; break;
|
||||
case USERDEFS_VM_SPRITE: lLabelID = vm.g_i; break;
|
||||
case USERDEFS_VM_DISTANCE: lLabelID = vm.g_x; break;
|
||||
case USERDEFS_SOUNDTOGGLE: lLabelID = ud.config.SoundToggle; break;
|
||||
default: lLabelID = -1; break;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue