| 541 | } |
| 542 | |
| 543 | void InGameMenu::ToggleSpectate() |
| 544 | { |
| 545 | if (auto* mpLevelHandler = runtime_cast<Jazz2::Multiplayer::MpLevelHandler>(_root)) { |
| 546 | bool isSpectating = mpLevelHandler->IsSpectating(); |
| 547 | mpLevelHandler->RequestSpectateMode(!isSpectating); |
| 548 | } |
| 549 | |
| 550 | _root->ResumeGame(); |
| 551 | } |
| 552 | #endif |
| 553 | |
| 554 | bool InGameMenu::ActionPressed(PlayerAction action) |
no test coverage detected