projects
/
rocksndiamonds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fixed wrong screen transitions by forced screen redraw in every frame
[rocksndiamonds.git]
/
src
/
editor.c
diff --git
a/src/editor.c
b/src/editor.c
index 7ed0f977d73c0879885ffca809831064589a560c..4705b53c874e0b252049170f6676c948fb3b35de 100644
(file)
--- a/
src/editor.c
+++ b/
src/editor.c
@@
-6406,7
+6406,7
@@
void CreateLevelEditorGadgets()
int old_game_status = game_status;
/* setting 'game_status' is needed to get the right fonts for the editor */
int old_game_status = game_status;
/* setting 'game_status' is needed to get the right fonts for the editor */
-
game_status = GAME_MODE_EDITOR
;
+
SetGameStatus(GAME_MODE_EDITOR)
;
/* these values are not constant, but can change at runtime */
ed_fieldx = MAX_ED_FIELDX - 1;
/* these values are not constant, but can change at runtime */
ed_fieldx = MAX_ED_FIELDX - 1;
@@
-6440,7
+6440,7
@@
void CreateLevelEditorGadgets()
CreateTextbuttonGadgets();
CreateDrawingAreas();
CreateTextbuttonGadgets();
CreateDrawingAreas();
-
game_status = old_game_status
;
+
SetGameStatus(old_game_status)
;
}
void FreeLevelEditorGadgets()
}
void FreeLevelEditorGadgets()
@@
-12272,7
+12272,7
@@
void RequestExitLevelEditor(boolean ask_if_level_has_changed,
if (quick_quit)
FadeSkipNextFadeIn();
if (quick_quit)
FadeSkipNextFadeIn();
-
game_status = GAME_MODE_MAIN
;
+
SetGameStatus(GAME_MODE_MAIN)
;
DrawMainMenu();
}
DrawMainMenu();
}