projects
/
rocksndiamonds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
rnd-20050314-1-src
[rocksndiamonds.git]
/
src
/
game_em
/
graphics.c
diff --git
a/src/game_em/graphics.c
b/src/game_em/graphics.c
index 93100cb306d5aacbc398dc6c56fed92da7fcf379..06f974a2e935777387583b68373e7897e55b2ff6 100644
(file)
--- a/
src/game_em/graphics.c
+++ b/
src/game_em/graphics.c
@@
-96,7
+96,7
@@
static void DrawLevelField_EM(int x, int y, int sx, int sy,
}
else
{
}
else
{
- if (
width != TILEX || height != TILEY
)
+ if (
(width != TILEX || height != TILEY) && !g->preserve_background
)
ClearRectangle(screenBitmap, sx * TILEX, sy * TILEY, TILEX, TILEY);
if (width > 0 && height > 0)
ClearRectangle(screenBitmap, sx * TILEX, sy * TILEY, TILEX, TILEY);
if (width > 0 && height > 0)
@@
-379,8
+379,13
@@
void game_initscreen(void)
}
}
}
}
+#if 1
+ DrawAllGameValues(lev.required, ply1.dynamite, lev.score,
+ lev.time, ply1.keys | ply2.keys);
+#else
DrawAllGameValues(lev.required, ply1.dynamite, lev.score,
DISPLAY_TIME(lev.time + 4), ply1.keys | ply2.keys);
DrawAllGameValues(lev.required, ply1.dynamite, lev.score,
DISPLAY_TIME(lev.time + 4), ply1.keys | ply2.keys);
+#endif
}
void RedrawPlayfield_EM()
}
void RedrawPlayfield_EM()
@@
-420,6
+425,11
@@
void game_animscreen(void)
void DrawGameDoorValues_EM()
{
void DrawGameDoorValues_EM()
{
+#if 1
+ DrawAllGameValues(lev.required, ply1.dynamite, lev.score,
+ lev.time, ply1.keys | ply2.keys);
+#else
DrawAllGameValues(lev.required, ply1.dynamite, lev.score,
DISPLAY_TIME(lev.time), ply1.keys | ply2.keys);
DrawAllGameValues(lev.required, ply1.dynamite, lev.score,
DISPLAY_TIME(lev.time), ply1.keys | ply2.keys);
+#endif
}
}