Skip to content

Commit

Permalink
save play_controller.init_side_done as a toplevel member of snapshot
Browse files Browse the repository at this point in the history
This is in an effort to address https://gna.org/bugs/?21397
  • Loading branch information
cbeck88 committed May 31, 2014
1 parent 5b94adc commit 5ed8494
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/play_controller.cpp
Expand Up @@ -123,7 +123,7 @@ play_controller::play_controller(const config& level, game_state& state_of_game,
skip_replay_(skip_replay),
linger_(false),
it_is_a_new_turn_(true),
init_side_done_(true),
init_side_done_(level["init_side_done"].to_bool(true)),
savenames_(),
wml_commands_(),
victory_when_enemies_defeated_(true),
Expand Down Expand Up @@ -722,6 +722,7 @@ config play_controller::to_config() const
{
config cfg;

cfg["init_side_done"] = init_side_done_;
cfg.merge_attributes(level_);

for(std::vector<team>::const_iterator t = teams_.begin(); t != teams_.end(); ++t) {
Expand Down

0 comments on commit 5ed8494

Please sign in to comment.