Skip to content

Commit

Permalink
Fixed saving a map as a scenario not enabling scenario editor tools
Browse files Browse the repository at this point in the history
  • Loading branch information
jyrkive committed Jun 26, 2018
1 parent 1ea4149 commit 4bda3e7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions changelog.md
Expand Up @@ -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.
Expand Down
3 changes: 3 additions & 0 deletions src/editor/map/map_context.cpp
Expand Up @@ -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;
Expand Down

0 comments on commit 4bda3e7

Please sign in to comment.