projects
/
rocksndiamonds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fixed bug with mis-using image config option '.tile_size' for screen output
[rocksndiamonds.git]
/
src
/
game.c
diff --git
a/src/game.c
b/src/game.c
index 8273cb71fb796e803a5481e96001a59ce560b30d..cfeedb8f3eeb9ef95008a0edbe59603e08c44d6b 100644
(file)
--- a/
src/game.c
+++ b/
src/game.c
@@
-1949,7
+1949,7
@@
static void InitField(int x, int y, boolean init_game)
CheckTriggeredElementChange(x, y, element, CE_CREATION_OF_X);
}
CheckTriggeredElementChange(x, y, element, CE_CREATION_OF_X);
}
-
static inline
void InitField_WithBug1(int x, int y, boolean init_game)
+
inline static
void InitField_WithBug1(int x, int y, boolean init_game)
{
InitField(x, y, init_game);
{
InitField(x, y, init_game);
@@
-1959,7
+1959,7
@@
static inline void InitField_WithBug1(int x, int y, boolean init_game)
InitMovDir(x, y);
}
InitMovDir(x, y);
}
-
static inline
void InitField_WithBug2(int x, int y, boolean init_game)
+
inline static
void InitField_WithBug2(int x, int y, boolean init_game)
{
int old_element = Feld[x][y];
{
int old_element = Feld[x][y];
@@
-3091,9
+3091,10
@@
void InitGame()
int initial_move_dir = MV_DOWN;
int i, j, x, y;
int initial_move_dir = MV_DOWN;
int i, j, x, y;
- game_status = GAME_MODE_PLAYING;
+ // required here to update video display before fading (FIX THIS)
+ DrawMaskedBorder(REDRAW_DOOR_2);
-
StopAnimation()
;
+
game_status = GAME_MODE_PLAYING
;
if (!game.restart_level)
CloseDoor(DOOR_CLOSE_1);
if (!game.restart_level)
CloseDoor(DOOR_CLOSE_1);
@@
-3925,6
+3926,8
@@
void InitGame()
BlitScreenToBitmap(backbuffer);
/* !!! FIX THIS (END) !!! */
BlitScreenToBitmap(backbuffer);
/* !!! FIX THIS (END) !!! */
+ DrawMaskedBorder(fade_mask);
+
FadeIn(fade_mask);
#if 1
FadeIn(fade_mask);
#if 1
@@
-4970,7
+4973,7
@@
void DrawRelocateScreen(int old_x, int old_y, int x, int y, int move_dir,
}
}
}
}
- RedrawPlayfield(
TRUE, 0,0,0,0
);
+ RedrawPlayfield();
}
else
{
}
else
{