remove unneeded variable

This commit is contained in:
gfgtdf 2014-06-26 22:01:05 +02:00
parent 5739429c39
commit 06a3a859fa

View file

@ -128,8 +128,6 @@ static void show_carryover_message(saved_game& gamestate, playsingle_controller&
LEVEL_RESULT play_replay(display& disp, saved_game& gamestate, const config& game_config,
CVideo& video, bool is_unit_test)
{
const std::string campaign_type_str = lexical_cast<std::string> (gamestate.classification().campaign_type);
// 'starting_pos' will contain the position we start the game from.
// this call also might expand [scenario] in case thatt there is no replay_start
const config& starting_pos = gamestate.get_replay_starting_pos();
@ -264,8 +262,6 @@ LEVEL_RESULT play_game(game_display& disp, saved_game& gamestate,
const config& game_config, io_type_t io_type, bool skip_replay,
bool network_game, bool blindfold_replay, bool is_unit_test)
{
const std::string campaign_type_str = lexical_cast_default<std::string> (gamestate.classification().campaign_type);
gamestate.expand_scenario();
while(gamestate.valid())