From 4bda3e7311c7b54742fbd29cb725dc0b292de633 Mon Sep 17 00:00:00 2001 From: Jyrki Vesterinen Date: Tue, 26 Jun 2018 20:30:02 +0300 Subject: [PATCH] Fixed saving a map as a scenario not enabling scenario editor tools --- changelog.md | 2 ++ src/editor/map/map_context.cpp | 3 +++ 2 files changed, 5 insertions(+) diff --git a/changelog.md b/changelog.md index ce341cd32163..77ad381fc923 100644 --- a/changelog.md +++ b/changelog.md @@ -57,6 +57,8 @@ * S11: added custom graphics for the citadel. * S12: clarified the alien bodies' weaknesses. * Various visual improvements. + ### Editor + * Fixed saving a map as a scenario not enabling scenario editor tools. ### Graphics * Tweaked the Ruffian's attack animation timing. * New attack animation for the Peasant. diff --git a/src/editor/map/map_context.cpp b/src/editor/map/map_context.cpp index 18a5572dc886..d087ca261bd5 100644 --- a/src/editor/map/map_context.cpp +++ b/src/editor/map/map_context.cpp @@ -605,6 +605,9 @@ bool map_context::save_scenario() throw editor_map_save_exception(msg); } + // After saving the map as a scenario, it's no longer a pure map. + pure_map_ = false; + // TODO the return value of this method does not need to be boolean. // We either return true or there is an exception thrown. return true;