Fixed custom game title being lost when reloading game (fixes #2534)

This stems from 0337835d97. I imagine at the time reloaded games
got no titles at all, so they were just given the default one ("[Player]'s game)". Testing now
shows that the reloaded game correctly carries over its original title. Since the default tile
is fallen back on when the game is originally created if if no custom title is given, there will
always be a title when you reload.

I'm guessing this might have been a side effect of 728b29dc61,
but I'm not sure. Still, it's nice that it Just Works.
This commit is contained in:
Charles Dang 2018-02-22 04:06:44 +11:00
parent db0f23701b
commit 05d52c5db5

View file

@ -477,7 +477,6 @@ void create_engine::prepare_for_saved_game()
// The save might be a start-of-scenario save so make sure we have the scenario data loaded.
state_.expand_scenario();
state_.mp_settings().saved_game = true;
state_.mp_settings().name = vgettext("$login|s game", {{"login", preferences::login()}});
}
void create_engine::prepare_for_other()