| 42 | } |
| 43 | |
| 44 | void APSModule::onLocalPlayerDeath(GlobedGJBGL* gjbgl, bool real) { |
| 45 | // don't respawn immediately if we are not the main player, instead wait for the main player to respawn us |
| 46 | auto apl = APSPlayLayer::get(gjbgl); |
| 47 | auto& cont = apl->m_fields->m_controller; |
| 48 | if (cont.m_gameActive && cont.m_activePlayer != 0 && !cont.m_meActive) { |
| 49 | gjbgl->cancelLocalRespawn(); |
| 50 | } |
| 51 | } |
| 52 | |
| 53 | void APSModule::onPlayerRespawn(GlobedGJBGL* gjbgl, RemotePlayer* player) { |
| 54 | auto apl = APSPlayLayer::get(gjbgl); |
nothing calls this directly
no test coverage detected