mirror of
https://github.com/OpenTTD/OpenTTD
synced 2026-01-27 06:04:25 +01:00
Fix: File/directory titles not updated if language is changed. (#14542)
This commit is contained in:
@@ -391,7 +391,7 @@ struct GenerateLandscapeWindow : public Window {
|
||||
WidgetID widget_id{};
|
||||
uint x = 0;
|
||||
uint y = 0;
|
||||
std::string name{};
|
||||
EncodedString name{};
|
||||
GenerateLandscapeWindowMode mode{};
|
||||
|
||||
GenerateLandscapeWindow(WindowDesc &desc, WindowNumber number = 0) : Window(desc)
|
||||
@@ -467,7 +467,7 @@ struct GenerateLandscapeWindow : public Window {
|
||||
}
|
||||
return GetString(_sea_lakes[_settings_newgame.difficulty.quantity_sea_lakes]);
|
||||
|
||||
case WID_GL_HEIGHTMAP_NAME_TEXT: return this->name;
|
||||
case WID_GL_HEIGHTMAP_NAME_TEXT: return this->name.GetDecodedString();
|
||||
case WID_GL_RIVER_PULLDOWN: return GetString(_rivers[_settings_newgame.game_creation.amount_of_rivers]);
|
||||
case WID_GL_SMOOTHNESS_PULLDOWN: return GetString(_smoothness[_settings_newgame.game_creation.tgen_smoothness]);
|
||||
case WID_GL_VARIETY_PULLDOWN: return GetString(_variety[_settings_newgame.game_creation.variety]);
|
||||
|
||||
Reference in New Issue
Block a user