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:
hendricks266 2016-01-12 10:31:01 +00:00
parent 344e10628f
commit c1f67576a4
3 changed files with 3 additions and 0 deletions

View file

@ -1177,6 +1177,7 @@ const memberlabel_t UserdefsLabels[]=
{ "vm_player", USERDEFS_VM_PLAYER, 0, 0 }, { "vm_player", USERDEFS_VM_PLAYER, 0, 0 },
{ "vm_sprite", USERDEFS_VM_SPRITE, 0, 0 }, { "vm_sprite", USERDEFS_VM_SPRITE, 0, 0 },
{ "vm_distance", USERDEFS_VM_DISTANCE, 0, 0 }, { "vm_distance", USERDEFS_VM_DISTANCE, 0, 0 },
{ "soundtoggle", USERDEFS_SOUNDTOGGLE, 0, 0 },
{ "", -1, 0, 0 } // END OF LIST { "", -1, 0, 0 } // END OF LIST
}; };

View file

@ -479,6 +479,7 @@ enum UserdefsLabel_t
USERDEFS_VM_PLAYER, USERDEFS_VM_PLAYER,
USERDEFS_VM_SPRITE, USERDEFS_VM_SPRITE,
USERDEFS_VM_DISTANCE, USERDEFS_VM_DISTANCE,
USERDEFS_SOUNDTOGGLE,
USERDEFS_END USERDEFS_END
}; };

View file

@ -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_PLAYER: lLabelID = vm.g_p; break;
case USERDEFS_VM_SPRITE: lLabelID = vm.g_i; break; case USERDEFS_VM_SPRITE: lLabelID = vm.g_i; break;
case USERDEFS_VM_DISTANCE: lLabelID = vm.g_x; break; case USERDEFS_VM_DISTANCE: lLabelID = vm.g_x; break;
case USERDEFS_SOUNDTOGGLE: lLabelID = ud.config.SoundToggle; break;
default: lLabelID = -1; break; default: lLabelID = -1; break;
} }