* Finds out if current game is a loaded emergency savegame. */
| 362 | * Finds out if current game is a loaded emergency savegame. |
| 363 | */ |
| 364 | bool Gamelog::TestEmergency() |
| 365 | { |
| 366 | for (const LoggedAction &la : this->data->action) { |
| 367 | for (const auto &lc : la.change) { |
| 368 | if (lc->ct == GLCT_EMERGENCY) return true; |
| 369 | } |
| 370 | } |
| 371 | |
| 372 | return false; |
| 373 | } |
| 374 | |
| 375 | /** |
| 376 | * Logs a change in game revision |
no outgoing calls
no test coverage detected