X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Fgame_em%2Fgraphics.c;h=06f974a2e935777387583b68373e7897e55b2ff6;hb=1e4a6b46371858fdb85052eec3e7143732ff91b5;hp=93100cb306d5aacbc398dc6c56fed92da7fcf379;hpb=0078fa1620abed262370083c0c6aa475a25e1b04;p=rocksndiamonds.git diff --git a/src/game_em/graphics.c b/src/game_em/graphics.c index 93100cb3..06f974a2 100644 --- 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 { - 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) @@ -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); +#endif } void RedrawPlayfield_EM() @@ -420,6 +425,11 @@ void game_animscreen(void) 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); +#endif }