X-Git-Url: https://git.artsoft.org/?p=rocksndiamonds.git;a=blobdiff_plain;f=src%2Feditor.c;h=5f9b2b9d9e0f95807b7e5b9142c67bd6104e2842;hp=cef0b2875b2430259ceef346eea90e00777abd1a;hb=5c6c42f1;hpb=05818ea4267c3e2a196071d17d8735d6f6fe65c9 diff --git a/src/editor.c b/src/editor.c index cef0b287..5f9b2b9d 100644 --- a/src/editor.c +++ b/src/editor.c @@ -5688,6 +5688,10 @@ static void ReinitializeElementList() num_editor_elements += num_editor_el_empty; } + else + { + num_editor_el_empty = 0; + } editor_elements = checked_malloc(num_editor_elements * sizeof(int)); @@ -8260,7 +8264,7 @@ void DrawLevelEd() FadeSoundsAndMusic(); - if (CheckIfGlobalBorderHasChanged()) + if (CheckIfGlobalBorderOrPlayfieldViewportHasChanged()) fade_mask = REDRAW_ALL; FadeOut(fade_mask); @@ -8273,7 +8277,7 @@ void DrawLevelEd() InitZoomLevelSettings(-1); InitLevelSetInfo(); - OpenDoor(DOOR_OPEN_1 | DOOR_OPEN_2 | DOOR_NO_DELAY); + SetDoorState(DOOR_OPEN_1 | DOOR_OPEN_2); #if DEBUG CheckElementDescriptions();