X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Feditor.c;h=4f29f028a7bc245c1b3abb4222aae4095c0f6be2;hb=3088b2ad63bc8b79672bdd13f6ddbcad24309f4f;hp=41bb5d887d8a4b6eb8c00651291af7d212bee41a;hpb=b160c62281ca7afaf6c0af742b5f75ad353d798a;p=rocksndiamonds.git diff --git a/src/editor.c b/src/editor.c index 41bb5d88..4f29f028 100644 --- a/src/editor.c +++ b/src/editor.c @@ -8181,6 +8181,12 @@ static boolean CopyCustomElement(int element_old, int element_new, return FALSE; } + else if (IS_EMPTY_ELEMENT(element_old) && !IS_EMPTY_ELEMENT(element_new)) + { + Request("Please choose empty element!", REQ_CONFIRM); + + return FALSE; + } else { level.changed = TRUE; @@ -10677,7 +10683,8 @@ static void DrawPropertiesWindow(void) UnmapLevelEditorToolboxCustomGadgets(); if (IS_CUSTOM_ELEMENT(properties_element) || - IS_GROUP_ELEMENT(properties_element)) + IS_GROUP_ELEMENT(properties_element) || + IS_EMPTY_ELEMENT(properties_element)) MapLevelEditorToolboxCustomGadgets(); SetMainBackgroundImage(IMG_BACKGROUND_EDITOR);