fix: center initial cam pos
This commit is contained in:
@@ -101,7 +101,7 @@ void ClientGame::HandlePacket(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.setCamPos(spawn.x, spawn.y);
|
||||
m_WorldRenderer.setCamPos(spawn.x + 0.5, spawn.y + 0.5);
|
||||
}
|
||||
|
||||
void ClientGame::renderWorld(){
|
||||
|
||||
Reference in New Issue
Block a user