added a save at campaign start

This commit is contained in:
John W. C. McNabb 2006-02-18 05:00:52 +00:00
parent 1440c963cc
commit f4a8fa38e1
2 changed files with 2 additions and 1 deletions

View file

@ -1474,7 +1474,6 @@ void game_controller::play_game(RELOAD_GAME_DATA reload)
// change this if MP campaigns are implemented
if(result == VICTORY && (state_.campaign_type.empty() || state_.campaign_type != "multiplayer")) {
the_end(disp());
printf("got here...%s[[[\n",state_.campaign.c_str());
about::show_about(disp(),state_.campaign);
}
} catch(game::load_game_exception& e) {

View file

@ -148,6 +148,8 @@ LEVEL_RESULT play_game(display& disp, game_state& state, const config& game_conf
LOG_G << "loading scenario: '" << state.scenario << "'\n";
scenario = game_config.find_child(type,"id",state.scenario);
LOG_G << "scenario found: " << (scenario != NULL ? "yes" : "no") << "\n";
config snapshot;
recorder.save_game("Campaign Start", snapshot, state.starting_pos);
}
} else {
LOG_G << "loading snapshot...\n";