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

Function ConResetEngines

src/console_cmds.cpp:246–255  ·  view source on GitHub ↗

* Reset status of all engines. * @return Will always succeed. */

Source from the content-addressed store, hash-verified

244 * @return Will always succeed.
245 */
246static bool ConResetEngines(std::span<std::string_view> argv)
247{
248 if (argv.empty()) {
249 IConsolePrint(CC_HELP, "Reset status data of all engines. This might solve some issues with 'lost' engines. Usage: 'resetengines'.");
250 return true;
251 }
252
253 StartupEngines();
254 return true;
255}
256
257/**
258 * Reset status of the engine pool.

Callers

nothing calls this directly

Calls 3

StartupEnginesFunction · 0.85
IConsolePrintFunction · 0.70
emptyMethod · 0.45

Tested by

no test coverage detected