projects
/
rocksndiamonds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
rnd-20100220-1-src
[rocksndiamonds.git]
/
src
/
game_sp
/
main.c
diff --git
a/src/game_sp/main.c
b/src/game_sp/main.c
index 38e54a364c238537c3472fe3c576c6a60ee01722..f30aa0dbbb5e8cd8f4c743f7c58064a6e62720ce 100644
(file)
--- a/
src/game_sp/main.c
+++ b/
src/game_sp/main.c
@@
-3,7
+3,7
@@
#include "global.h"
#include "global.h"
-struct GameInfo_SP game_sp
_info
;
+struct GameInfo_SP game_sp;
struct LevelInfo_SP native_sp_level;
struct LevelInfo_SP native_sp_level;
@@
-19,8
+19,8
@@
void InitGameEngine_SP()
gfx.anim_random_frame = -1; // (use simple, ad-hoc random numbers)
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;
menBorder.Checked = setup.sp_show_border_elements;
@@
-65,7
+65,10
@@
void RedrawPlayfield_SP(boolean force_redraw)
{
// subDisplayLevel();
{
// subDisplayLevel();
- UpdatePlayfield();
+ if (force_redraw)
+ RestorePlayfield();
+
+ UpdatePlayfield(force_redraw);
BackToFront_SP();
}
BackToFront_SP();
}