From: Holger Schemel Date: Fri, 27 Jan 2017 20:44:36 +0000 (+0100) Subject: added request dialog to copy settings when deactivating level template X-Git-Tag: 4.0.0.2~16 X-Git-Url: https://git.artsoft.org/?p=rocksndiamonds.git;a=commitdiff_plain;h=27ffbe2b057d39a86c905d95acea54056690bb20 added request dialog to copy settings when deactivating level template --- 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();