From ba291a142828664cdcc02359e7c9873109543d61 Mon Sep 17 00:00:00 2001 From: Persson-dev Date: Thu, 2 Sep 2021 12:09:13 +0200 Subject: [PATCH] fix: center initial cam pos --- src/game/client/ClientGame.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/game/client/ClientGame.cpp b/src/game/client/ClientGame.cpp index bf5c462..33e7cd3 100644 --- a/src/game/client/ClientGame.cpp +++ b/src/game/client/ClientGame.cpp @@ -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(){