rnd-20020417-1-src
[rocksndiamonds.git] / src / libgame / system.c
index 521e43f40bebd8a19b5e820fb0182de0cbb34dd9..e1ac9ccc26659467c0490607596c87ed8e235ca2 100644 (file)
@@ -357,6 +357,16 @@ inline boolean DrawingDeactivated(int x, int y, int width, int height)
     if ((gfx.draw_deactivation_mask & REDRAW_FIELD) &&
        x < gfx.sx + gfx.sxsize)
       return TRUE;
+    else if ((gfx.draw_deactivation_mask & REDRAW_DOORS) &&
+            x > gfx.dx)
+    {
+      if ((gfx.draw_deactivation_mask & REDRAW_DOOR_1) &&
+         y < gfx.dy + gfx.dysize)
+       return TRUE;
+      else if ((gfx.draw_deactivation_mask & REDRAW_DOOR_2) &&
+              y > gfx.vy)
+       return TRUE;
+    }
   }
 
   return FALSE;
@@ -730,6 +740,8 @@ inline void OpenAudio(void)
   audio.mods_available = FALSE;
   audio.sound_enabled = FALSE;
 
+  audio.sound_deactivated = FALSE;
+
   audio.soundserver_pipe[0] = audio.soundserver_pipe[1] = 0;
   audio.soundserver_pid = -1;
   audio.device_name = NULL;