changed so that "Campaign Start" Save now uses the scenario title instead.

This commit is contained in:
John W. C. McNabb 2006-03-19 16:06:36 +00:00
parent 8209bc1517
commit eab78a3f67

View file

@ -149,7 +149,9 @@ LEVEL_RESULT play_game(display& disp, game_state& state, const config& game_conf
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);
if (state.label.empty())
state.label = (*scenario)["name"];
recorder.save_game(state.label, snapshot, state.starting_pos);
}
} else {
LOG_G << "loading snapshot...\n";