useless cam functions

This commit is contained in:
2023-08-15 19:19:54 +02:00
parent 380ecf3a27
commit debf9e974c
5 changed files with 11 additions and 0 deletions

View File

@@ -117,6 +117,7 @@ void ClientGame::HandlePacket(const protocol::WorldDataPacket* packet) {
m_WorldRenderer.LoadModels();
// set cam pos to player spawn
const game::Spawn& spawn = m_World->GetTeam(m_Player->GetTeamColor()).GetSpawn();
m_WorldRenderer.ResetCam();
m_WorldRenderer.SetCamPos(spawn.GetCenterX(), spawn.GetCenterY());
}