Skip to content

Commit

Permalink
remove unneeded variable
Browse files Browse the repository at this point in the history
  • Loading branch information
gfgtdf committed Jun 27, 2014
1 parent 8f9b541 commit 5739429
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions src/playcampaign.cpp
Expand Up @@ -270,7 +270,6 @@ LEVEL_RESULT play_game(game_display& disp, saved_game& gamestate,

while(gamestate.valid())
{
bool save_game_after_scenario = true;
LEVEL_RESULT res = VICTORY;
end_level_data end_level;

Expand Down Expand Up @@ -362,11 +361,6 @@ LEVEL_RESULT play_game(game_display& disp, saved_game& gamestate,
}
}

// Continue without saving is like a victory,
// but the save game dialog isn't displayed
if (!end_level.prescenario_save)
save_game_after_scenario = false;

if (io_type == IO_CLIENT) {
// Opens mp::connect dialog to get a new gamestate.
mp::ui::result wait_res = mp::goto_mp_wait(gamestate, disp,
Expand Down Expand Up @@ -432,7 +426,7 @@ LEVEL_RESULT play_game(game_display& disp, saved_game& gamestate,
gamestate.update_label();

// If this isn't the last scenario, then save the game
if(save_game_after_scenario) {
if(end_level.prescenario_save) {

// For multiplayer, we want the save
// to contain the starting position.
Expand Down

0 comments on commit 5739429

Please sign in to comment.