X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Flibgame%2Fsystem.c;h=e1ac9ccc26659467c0490607596c87ed8e235ca2;hb=69e8efac8d856859c55237e085ff8b514ae1aa3c;hp=521e43f40bebd8a19b5e820fb0182de0cbb34dd9;hpb=e849e67ceff4a2f5d457dedee8f18de1646b9dc3;p=rocksndiamonds.git diff --git a/src/libgame/system.c b/src/libgame/system.c index 521e43f4..e1ac9ccc 100644 --- a/src/libgame/system.c +++ b/src/libgame/system.c @@ -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;