X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Fgame_sp%2Fmain.c;h=f30aa0dbbb5e8cd8f4c743f7c58064a6e62720ce;hb=f926e522aef77158e0011ae5ad2cf8805509d6d1;hp=38e54a364c238537c3472fe3c576c6a60ee01722;hpb=4f9e14eb7715eb000d6a750f9734b8dcc521923f;p=rocksndiamonds.git diff --git a/src/game_sp/main.c b/src/game_sp/main.c index 38e54a36..f30aa0db 100644 --- a/src/game_sp/main.c +++ b/src/game_sp/main.c @@ -3,7 +3,7 @@ #include "global.h" -struct GameInfo_SP game_sp_info; +struct GameInfo_SP game_sp; struct LevelInfo_SP native_sp_level; @@ -19,8 +19,8 @@ void InitGameEngine_SP() gfx.anim_random_frame = -1; // (use simple, ad-hoc random numbers) - game_sp_info.LevelSolved = FALSE; - game_sp_info.GameOver = FALSE; + game_sp.LevelSolved = FALSE; + game_sp.GameOver = FALSE; menBorder.Checked = setup.sp_show_border_elements; @@ -65,7 +65,10 @@ void RedrawPlayfield_SP(boolean force_redraw) { // subDisplayLevel(); - UpdatePlayfield(); + if (force_redraw) + RestorePlayfield(); + + UpdatePlayfield(force_redraw); BackToFront_SP(); }