mirror of
https://github.com/OpenTTD/OpenTTD
synced 2025-12-23 21:22:46 +01:00
Codechange: Use EncodedString for error messages. (#13569)
This commit is contained in:
@@ -345,7 +345,7 @@ struct SelectGameWindow : public Window {
|
||||
|
||||
case WID_SGI_PLAY_NETWORK:
|
||||
if (!_network_available) {
|
||||
ShowErrorMessage(STR_NETWORK_ERROR_NOTAVAILABLE, INVALID_STRING_ID, WL_ERROR);
|
||||
ShowErrorMessage(GetEncodedString(STR_NETWORK_ERROR_NOTAVAILABLE), {}, WL_ERROR);
|
||||
} else {
|
||||
ShowNetworkGameWindow();
|
||||
}
|
||||
@@ -363,7 +363,7 @@ struct SelectGameWindow : public Window {
|
||||
case WID_SGI_GRF_SETTINGS: ShowNewGRFSettings(true, true, false, _grfconfig_newgame); break;
|
||||
case WID_SGI_CONTENT_DOWNLOAD:
|
||||
if (!_network_available) {
|
||||
ShowErrorMessage(STR_NETWORK_ERROR_NOTAVAILABLE, INVALID_STRING_ID, WL_ERROR);
|
||||
ShowErrorMessage(GetEncodedString(STR_NETWORK_ERROR_NOTAVAILABLE), {}, WL_ERROR);
|
||||
} else {
|
||||
ShowNetworkContentListWindow();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user