From: Holger Schemel Date: Wed, 10 Apr 2024 11:12:21 +0000 (+0200) Subject: fixed using invalid edit mode in level editor X-Git-Tag: 4.4.0.0-test-1~80 X-Git-Url: https://git.artsoft.org/?a=commitdiff_plain;h=d3dd98f09b15c0b3110acfc3c6abc36cc1007b05;p=rocksndiamonds.git fixed using invalid edit mode in level editor --- diff --git a/src/editor.c b/src/editor.c index 95d30a88..75663919 100644 --- a/src/editor.c +++ b/src/editor.c @@ -11573,6 +11573,11 @@ static void DrawLevelConfigWindow(void) stick_element_properties_window = FALSE; + // make sure that previous level config edit mode exists for this level + if (edit_mode_levelconfig == ED_MODE_LEVELCONFIG_ENGINE && + level.game_engine_type != GAME_ENGINE_TYPE_BD) + edit_mode_levelconfig = ED_MODE_LEVELCONFIG_LEVEL; + SetAutomaticNumberOfGemsNeeded(); UnmapLevelEditorFieldGadgets();