projects
/
rocksndiamonds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
cleanup of setting/resetting game status to control text font usage
[rocksndiamonds.git]
/
src
/
editor.c
diff --git
a/src/editor.c
b/src/editor.c
index 6682acf0e50264e188fc1f5213d67856b4f00b44..862a1866adcccb181eaa59dc09ee027ca11951c9 100644
(file)
--- a/
src/editor.c
+++ b/
src/editor.c
@@
-6403,10
+6403,8
@@
static void CreateRadiobuttonGadgets()
void CreateLevelEditorGadgets()
{
void CreateLevelEditorGadgets()
{
- int old_game_status = game_status;
-
- /* setting 'game_status' is needed to get the right fonts for the editor */
- SetGameStatus(GAME_MODE_EDITOR);
+ /* force EDITOR font inside level editor */
+ SetFontStatus(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
+6438,7
@@
void CreateLevelEditorGadgets()
CreateTextbuttonGadgets();
CreateDrawingAreas();
CreateTextbuttonGadgets();
CreateDrawingAreas();
-
SetGameStatus(old_game_status
);
+
ResetFontStatus(
);
}
void FreeLevelEditorGadgets()
}
void FreeLevelEditorGadgets()