projects
/
rocksndiamonds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fixed bug with drawing to default door 2 area while in editor
[rocksndiamonds.git]
/
src
/
editor.c
diff --git
a/src/editor.c
b/src/editor.c
index cef0b2875b2430259ceef346eea90e00777abd1a..fb40606a0239b4ffb4973c3956a9fc7fe594d80a 100644
(file)
--- a/
src/editor.c
+++ b/
src/editor.c
@@
-5688,6
+5688,10
@@
static void ReinitializeElementList()
num_editor_elements += num_editor_el_empty;
}
num_editor_elements += num_editor_el_empty;
}
+ else
+ {
+ num_editor_el_empty = 0;
+ }
editor_elements = checked_malloc(num_editor_elements * sizeof(int));
editor_elements = checked_malloc(num_editor_elements * sizeof(int));
@@
-8273,7
+8277,7
@@
void DrawLevelEd()
InitZoomLevelSettings(-1);
InitLevelSetInfo();
InitZoomLevelSettings(-1);
InitLevelSetInfo();
-
OpenDoor(DOOR_OPEN_1 | DOOR_OPEN_2 | DOOR_NO_DELAY
);
+
SetDoorState(DOOR_OPEN_1 | DOOR_OPEN_2
);
#if DEBUG
CheckElementDescriptions();
#if DEBUG
CheckElementDescriptions();