X-Git-Url: https://git.artsoft.org/?p=rocksndiamonds.git;a=blobdiff_plain;f=src%2Feditor.c;h=862a1866adcccb181eaa59dc09ee027ca11951c9;hp=6682acf0e50264e188fc1f5213d67856b4f00b44;hb=bc6e19a34de8c4c290dc3c6bee70ac805525070b;hpb=cea1ea492e56f8816aa76b3d59ae44c4f3b73339 diff --git a/src/editor.c b/src/editor.c index 6682acf0..862a1866 100644 --- a/src/editor.c +++ b/src/editor.c @@ -6403,10 +6403,8 @@ static void CreateRadiobuttonGadgets() 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; @@ -6440,7 +6438,7 @@ void CreateLevelEditorGadgets() CreateTextbuttonGadgets(); CreateDrawingAreas(); - SetGameStatus(old_game_status); + ResetFontStatus(); } void FreeLevelEditorGadgets()