* Scenario and finance related update iteration. * rct2: 0x006C44B1 */
| 389 | * rct2: 0x006C44B1 |
| 390 | */ |
| 391 | void ScenarioUpdate(GameState_t& gameState) |
| 392 | { |
| 393 | PROFILED_FUNCTION(); |
| 394 | |
| 395 | if (gLegacyScene == LegacyScene::playing) |
| 396 | { |
| 397 | auto& date = GetDate(); |
| 398 | if (date.IsDayStart()) |
| 399 | { |
| 400 | ScenarioDayUpdate(gameState); |
| 401 | } |
| 402 | if (date.IsWeekStart()) |
| 403 | { |
| 404 | ScenarioWeekUpdate(); |
| 405 | } |
| 406 | if (date.IsFortnightStart()) |
| 407 | { |
| 408 | ScenarioFortnightUpdate(); |
| 409 | } |
| 410 | if (date.IsMonthStart()) |
| 411 | { |
| 412 | ScenarioMonthUpdate(); |
| 413 | } |
| 414 | } |
| 415 | ScenarioUpdateDayNightCycle(); |
| 416 | } |
| 417 | /** |
| 418 | * |
| 419 | * rct2: 0x006744A9 |
no test coverage detected