MCPcopy Create free account
hub / github.com/OpenTTD/OpenTTD / ShowNetworkError

Function ShowNetworkError

src/network/network.cpp:300–304  ·  view source on GitHub ↗

There was a non-recoverable error, drop back to the main menu with a nice * error */

Source from the content-addressed store, hash-verified

298/* There was a non-recoverable error, drop back to the main menu with a nice
299 * error */
300void ShowNetworkError(StringID error_string)
301{
302 _switch_mode = SM_MENU;
303 ShowErrorMessage(GetEncodedString(error_string), {}, WL_CRITICAL);
304}
305
306/**
307 * Retrieve the string id of an internal error number

Callers 3

OnFailureMethod · 0.85
network_client.cppFile · 0.85
ListenMethod · 0.85

Calls 2

ShowErrorMessageFunction · 0.85
GetEncodedStringFunction · 0.50

Tested by

no test coverage detected