From: Holger Schemel Date: Sun, 29 May 2016 23:43:46 +0000 (+0200) Subject: fixed removing potential multiple screen redraw in the same video frame X-Git-Tag: 4.0.0.0-rc3~49 X-Git-Url: https://git.artsoft.org/?a=commitdiff_plain;h=3d9cd9e6ca46ea73f75a31cdc38785b4e4ae0abc;p=rocksndiamonds.git fixed removing potential multiple screen redraw in the same video frame --- diff --git a/src/tools.c b/src/tools.c index ab79bcda..30e9cd56 100644 --- a/src/tools.c +++ b/src/tools.c @@ -587,14 +587,16 @@ void BackToFront() x2 = MAX(x2, DX + DXSIZE); y2 = MAX(y2, DY + DYSIZE); } - else if (redraw_mask & REDRAW_DOOR_2) + + if (redraw_mask & REDRAW_DOOR_2) { x1 = MIN(x1, VX); y1 = MIN(y1, VY); x2 = MAX(x2, VX + VXSIZE); y2 = MAX(y2, VY + VYSIZE); } - else if (redraw_mask & REDRAW_DOOR_3) + + if (redraw_mask & REDRAW_DOOR_3) { x1 = MIN(x1, EX); y1 = MIN(y1, EY);