Kaynağa Gözat

fixed segfault

quantumde1 1 hafta önce
ebeveyn
işleme
4ff81723b3
2 değiştirilmiş dosya ile 1 ekleme ve 3 silme
  1. 0 2
      source/system/cleanup.d
  2. 1 1
      source/variables.d

+ 0 - 2
source/system/cleanup.d

@@ -8,7 +8,6 @@ import system.abstraction;
 void unloadResourcesLogic()
 {
     debugWriteln("Exiting. See ya'!");
-    StopMusicStream(music);
     EndDrawing();
     if (sfxEnabled) {
         UnloadSound(audio.menuMoveSound);
@@ -26,7 +25,6 @@ void unloadResourcesLogic()
     {
         UnloadTexture(backgrounds[i]);
     }
-    UnloadMusicStream(music);
     CloseAudioDevice();
     CloseWindow();
 }

+ 1 - 1
source/variables.d

@@ -80,7 +80,7 @@ bool playAnimation = false;
 
 bool audioEnabled = false;
 
-bool sfxEnabled = true;
+bool sfxEnabled = false;
 
 bool fullscreenEnabled = true;