| 125 | } |
| 126 | |
| 127 | bool WorldClient::mainPlayerDead() const { |
| 128 | if (inWorld()) |
| 129 | return !m_entityMap->get<Player>(m_mainPlayer->entityId()); |
| 130 | else |
| 131 | return false; |
| 132 | } |
| 133 | |
| 134 | void WorldClient::reviveMainPlayer() { |
| 135 | if (inWorld() && mainPlayerDead()) { |