X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;ds=sidebyside;f=src%2Feditor.c;h=fb40606a0239b4ffb4973c3956a9fc7fe594d80a;hb=2600d5817fa65a212ef097890560dd2550ba6c5f;hp=cef0b2875b2430259ceef346eea90e00777abd1a;hpb=05818ea4267c3e2a196071d17d8735d6f6fe65c9;p=rocksndiamonds.git diff --git a/src/editor.c b/src/editor.c index cef0b287..fb40606a 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)); @@ -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();