Skip to content

Commit

Permalink
remove old compability code
Browse files Browse the repository at this point in the history
we aren't able to replay games from 1.2 anyway. (we aren't even able to replay games form 1.10)
  • Loading branch information
gfgtdf committed Jun 10, 2014
1 parent 99feabf commit 911d990
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions src/playcampaign.cpp
Expand Up @@ -189,13 +189,6 @@ LEVEL_RESULT play_replay(display& disp, game_state& gamestate, const config& gam
{
const std::string campaign_type_str = lexical_cast<std::string> (gamestate.classification().campaign_type);

if (gamestate.replay_start().empty()){
// Backwards compatibility code for 1.2 and 1.2.1
const config &scenario = game_config.find_child(campaign_type_str,"id",gamestate.carryover_sides_start["next_scenario"]);
assert(scenario);
gamestate.replay_start() = scenario;
}

// 'starting_pos' will contain the position we start the game from.
const config& starting_pos = gamestate.replay_start();

Expand Down

0 comments on commit 911d990

Please sign in to comment.