fix persistent players

This commit is contained in:
2023-08-14 13:59:30 +02:00
parent 0c0fd155ed
commit 7986e55846
4 changed files with 13 additions and 2 deletions

View File

@@ -17,6 +17,11 @@ void Game::Tick(std::uint64_t delta) {
}
}
void Game::Reset() {
m_World->Reset();
m_Players.clear();
}
Player* Game::GetPlayerById(PlayerID id) {
auto it = m_Players.find(id);