X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;ds=sidebyside;f=src%2Feditor.c;h=893617eaccb51b3613b81301ccb68b5dd9cd2a5d;hb=b8114966908299df586165e00446f21c2ce343bb;hp=2b9a90889e1ae08cc8125dfc1d8a195a212f8494;hpb=34ed45c14d923459972fecf7a3b46f44d7e03670;p=rocksndiamonds.git diff --git a/src/editor.c b/src/editor.c index 2b9a9088..893617ea 100644 --- a/src/editor.c +++ b/src/editor.c @@ -2408,6 +2408,11 @@ static void CreateCheckbuttonGadgets() void CreateLevelEditorGadgets() { + int old_game_status = game_status; + + /* setting 'game_status' is needed to get the right fonts for the editor */ + game_status = LEVELED; + ReinitializeElementList(); CreateControlButtons(); @@ -2417,6 +2422,8 @@ void CreateLevelEditorGadgets() CreateSelectboxGadgets(); CreateScrollbarGadgets(); CreateCheckbuttonGadgets(); + + game_status = old_game_status; } void FreeLevelEditorGadgets()