hedgewars/uSound.pas
changeset 7628 bc7b1d228a2c
parent 7423 ec8f690f3e0f
child 7848 775a72905708
--- a/hedgewars/uSound.pas	Thu Aug 30 12:47:41 2012 -0400
+++ b/hedgewars/uSound.pas	Thu Aug 30 13:02:19 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.