X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Ftools.c;h=3948bcb1745ff83ad312b2ae5562cbf94af2bffe;hb=46881519bdb4df7d22412ce87efded94b4244e1d;hp=cee9fae4b12280e7f050ae465b091e93e89550b0;hpb=ba9d6f7e29ac32c02daf3451316c6233a9bae1b5;p=rocksndiamonds.git diff --git a/src/tools.c b/src/tools.c index cee9fae4..3948bcb1 100644 --- a/src/tools.c +++ b/src/tools.c @@ -293,6 +293,9 @@ static void DrawMaskedBorderExt_Rect(int x, int y, int width, int height, { Bitmap *bitmap = getGlobalBorderBitmapFromGameStatus(); + if (x == -1 && y == -1) + return; + if (blit_to_screen) BlitToScreenMasked(bitmap, x, y, width, height, x, y); else @@ -550,7 +553,7 @@ void BackToFront() redraw_mask = REDRAW_NONE; // force screen redraw in every frame to continue drawing global animations - redraw_mask = REDRAW_ALL; + redraw_mask = REDRAW_FIELD; #if DEBUG_FRAME_TIME PrintFrameTimeDebugging(); @@ -4228,7 +4231,7 @@ unsigned int MoveDoor(unsigned int door_state) { DX, DY, DXSIZE, DYSIZE }, { VX, VY, VXSIZE, VYSIZE } }; - static int door1 = DOOR_OPEN_1; + static int door1 = DOOR_CLOSE_1; static int door2 = DOOR_CLOSE_2; unsigned int door_delay = 0; unsigned int door_delay_value;