workaround - not great though since they probably should have proper initial values like they used to have in uConsts. leaving a note to koda
authornemo
Tue, 24 Jul 2012 18:53:42 -0400 (2012-07-24)
changeset 7423 ec8f690f3e0f
parent 7420 77567b03cc28
child 7426 55b49cc1f33a
workaround - not great though since they probably should have proper initial values like they used to have in uConsts. leaving a note to koda
hedgewars/uSound.pas
--- a/hedgewars/uSound.pas	Tue Jul 24 17:50:42 2012 -0400
+++ b/hedgewars/uSound.pas	Tue Jul 24 18:53:42 2012 -0400
@@ -587,11 +587,8 @@
     RegisterVariable('mute'     , @chMute     , true );
 
     MusicFN:='';
-    isMusicEnabled:= true;
-    isSoundEnabled:= true;
     isAudioMuted:= false;
     isSEBackup:= isSoundEnabled;
-    cInitVolume:= 100;
     Volume:= 0;
     defVoicepack:= AskForVoicepack('Default');
 
@@ -615,6 +612,11 @@
 begin
     if isSoundEnabled then
         ReleaseSound(true);
+    // koda still needs to fix this properly.  when he rearranged things, he made these variables get
+    // reset after argparsers picks them up
+    isMusicEnabled:= true;
+    isSoundEnabled:= true;
+    cInitVolume:= 100;
 end;
 
 end.