mirror of
https://github.com/OpenTTD/OpenTTD
synced 2026-01-20 19:02:41 +01:00
Codechange: Use EncodedString for Query window. (#13528)
This removes the need to separately capture and store global parameters.
This commit is contained in:
@@ -713,8 +713,8 @@ struct GenerateLandscapeWindow : public Window {
|
||||
map_y * 2 < (1U << _settings_newgame.game_creation.map_y) ||
|
||||
map_y / 2 > (1U << _settings_newgame.game_creation.map_y))) {
|
||||
ShowQuery(
|
||||
STR_WARNING_HEIGHTMAP_SCALE_CAPTION,
|
||||
STR_WARNING_HEIGHTMAP_SCALE_MESSAGE,
|
||||
GetEncodedString(STR_WARNING_HEIGHTMAP_SCALE_CAPTION),
|
||||
GetEncodedString(STR_WARNING_HEIGHTMAP_SCALE_MESSAGE),
|
||||
this,
|
||||
LandscapeGenerationCallback);
|
||||
} else {
|
||||
@@ -1381,8 +1381,8 @@ struct GenerateProgressWindow : public Window {
|
||||
case WID_GP_ABORT:
|
||||
SetMouseCursorBusy(false);
|
||||
ShowQuery(
|
||||
STR_GENERATION_ABORT_CAPTION,
|
||||
STR_GENERATION_ABORT_MESSAGE,
|
||||
GetEncodedString(STR_GENERATION_ABORT_CAPTION),
|
||||
GetEncodedString(STR_GENERATION_ABORT_MESSAGE),
|
||||
this,
|
||||
AbortGeneratingWorldCallback
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user