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

Method Emergency

src/gamelog.cpp:352–359  ·  view source on GitHub ↗

* Logs a emergency savegame */

Source from the content-addressed store, hash-verified

350 * Logs a emergency savegame
351 */
352void Gamelog::Emergency()
353{
354 /* Terminate any active action */
355 if (this->action_type != GLAT_NONE) this->StopAction();
356 this->StartAction(GLAT_EMERGENCY);
357 this->Change(std::make_unique<LoggedChangeEmergencySave>());
358 this->StopAction();
359}
360
361/**
362 * Finds out if current game is a loaded emergency savegame.

Callers 1

WriteSavegameMethod · 0.80

Calls 3

StopActionMethod · 0.95
StartActionMethod · 0.95
ChangeMethod · 0.95

Tested by

no test coverage detected