From 27ffbe2b057d39a86c905d95acea54056690bb20 Mon Sep 17 00:00:00 2001 From: Holger Schemel Date: Fri, 27 Jan 2017 21:44:36 +0100 Subject: [PATCH] added request dialog to copy settings when deactivating level template --- src/editor.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/editor.c b/src/editor.c index 54bf0c00..fd1dfbda 100644 --- a/src/editor.c +++ b/src/editor.c @@ -7531,7 +7531,7 @@ static void CopyElementPropertiesToEditor(int element) static boolean AskToCopyAndModifyLevelTemplate() { - if (Request("Copy and modify level template?", REQ_ASK)) + if (Request("Copy and modify settings from level template?", REQ_ASK)) { level.use_custom_template = FALSE; @@ -11586,6 +11586,12 @@ static void HandleCheckbuttons(struct GadgetInfo *gi) return; } + if (!level.use_custom_template && + Request("Copy settings from level template?", REQ_ASK)) + { + return; + } + LoadLevelTemplate(level.use_custom_template ? -1 : level_nr); DrawEditModeWindow(); -- 2.34.1