X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;ds=sidebyside;f=src%2Flibgame%2Fsystem.c;h=6e3eaaba10804489e8f082a5e8303dcffc87a580;hb=7f77c2e8dcb7ad575fcaf89512f4f616846c8b41;hp=f3696277749fe3c6a987c18e77118d1306a0247d;hpb=e05e97eef55da1c82b493d0ca20a868e8e189413;p=rocksndiamonds.git diff --git a/src/libgame/system.c b/src/libgame/system.c index f3696277..6e3eaaba 100644 --- a/src/libgame/system.c +++ b/src/libgame/system.c @@ -424,13 +424,16 @@ inline static boolean CheckDrawingArea(int x, int y, int width, int height, if (draw_mask & REDRAW_ALL) return TRUE; - if ((draw_mask & REDRAW_FIELD) && x < gfx.real_sx + gfx.full_sxsize) + if ((draw_mask & REDRAW_FIELD) && + x >= gfx.real_sx && x < gfx.real_sx + gfx.full_sxsize) return TRUE; - if ((draw_mask & REDRAW_DOOR_1) && x >= gfx.dx && y < gfx.dy + gfx.dysize) + if ((draw_mask & REDRAW_DOOR_1) && + x >= gfx.dx && y < gfx.dy + gfx.dysize) return TRUE; - if ((draw_mask & REDRAW_DOOR_2) && x >= gfx.dx && y >= gfx.vy) + if ((draw_mask & REDRAW_DOOR_2) && + x >= gfx.dx && y >= gfx.vy) return TRUE; return FALSE;