X-Git-Url: https://git.artsoft.org/?p=rocksndiamonds.git;a=blobdiff_plain;f=src%2Feditor.c;h=48e6feb0b41bed5abdcba92af917cd2d3e2173b1;hp=507f9c3b71cfc71ed8a446898a57c26e3a42cfc7;hb=a3ea1329b254d1918dcf2fb0587516c68523cf02;hpb=2adec83bef3e75ccb9af305cb44693c467c4d665 diff --git a/src/editor.c b/src/editor.c index 507f9c3b..48e6feb0 100644 --- a/src/editor.c +++ b/src/editor.c @@ -11513,6 +11513,16 @@ static void HandleCheckbuttons(struct GadgetInfo *gi) return; } + if (level.use_custom_template && + !Request("Discard changes and use level template?", REQ_ASK)) + { + level.use_custom_template = FALSE; + + ModifyGadget(gi, GDI_CHECKED, FALSE, GDI_END); + + return; + } + LoadLevelTemplate(level.use_custom_template ? -1 : level_nr); DrawEditModeWindow();