| 132 | } |
| 133 | |
| 134 | void WorldClient::reviveMainPlayer() { |
| 135 | if (inWorld() && mainPlayerDead()) { |
| 136 | m_mainPlayer->revive(m_playerStart); |
| 137 | m_mainPlayer->init(this, m_entityMap->reserveEntityId(), EntityMode::Master); |
| 138 | m_entityMap->addEntity(m_mainPlayer); |
| 139 | } |
| 140 | } |
| 141 | |
| 142 | bool WorldClient::respawnInWorld() const { |
| 143 | return m_respawnInWorld; |
no test coverage detected