projects
/
rocksndiamonds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
changed main screen to initially start with closed upper door
[rocksndiamonds.git]
/
src
/
tools.c
diff --git
a/src/tools.c
b/src/tools.c
index cee9fae4b12280e7f050ae465b091e93e89550b0..3948bcb1745ff83ad312b2ae5562cbf94af2bffe 100644
(file)
--- 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();
{
Bitmap *bitmap = getGlobalBorderBitmapFromGameStatus();
+ if (x == -1 && y == -1)
+ return;
+
if (blit_to_screen)
BlitToScreenMasked(bitmap, x, y, width, height, x, y);
else
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_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();
#if DEBUG_FRAME_TIME
PrintFrameTimeDebugging();
@@
-4228,7
+4231,7
@@
unsigned int MoveDoor(unsigned int door_state)
{ DX, DY, DXSIZE, DYSIZE },
{ VX, VY, VXSIZE, VYSIZE }
};
{ 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;
static int door2 = DOOR_CLOSE_2;
unsigned int door_delay = 0;
unsigned int door_delay_value;