Fixed custom game title being lost when reloading game (fixes #2534)
This stems from0337835d97
. 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 of728b29dc61
, but I'm not sure. Still, it's nice that it Just Works.
This commit is contained in:
parent
db0f23701b
commit
05d52c5db5
1 changed files with 0 additions and 1 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Reference in a new issue