# HG changeset patch
# User nemo
# Date 1343170422 14400
# Node ID ec8f690f3e0f507fb9109b4ea1ce30ea55526913
# Parent  77567b03cc2895a34ea5c36fe55b8cc27edfc6d3
workaround - not great though since they probably should have proper initial values like they used to have in uConsts. leaving a note to koda

diff -r 77567b03cc28 -r ec8f690f3e0f 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.