mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-20 18:46:19 +00:00
remove unneeded variable
This commit is contained in:
parent
8f9b5414b5
commit
5739429c39
@ -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;
|
||||
|
||||
@ -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,
|
||||
@ -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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user