From 16ddfaa9423e026a6b01906a096cf7b4e7981e35 Mon Sep 17 00:00:00 2001 From: Maximilian Giller Date: Thu, 6 Jul 2023 00:21:41 +0200 Subject: [PATCH] Small improvement --- src/game/player/player.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/game/player/player.cpp b/src/game/player/player.cpp index c88280b..c5bb9e7 100644 --- a/src/game/player/player.cpp +++ b/src/game/player/player.cpp @@ -81,7 +81,7 @@ float Player::getWorldRadius() const sf::Vector2f Player::getIsoSize() const { // TODO: For some reason, the player is a little to narrow. This fixes it. - const float fixFactor = 1.4f; + const float fixFactor = sqrt(2); float width = radiusInWorld * 2.f * WORLD_TO_ISO_SCALE * fixFactor; return {width, width * ISOMETRIC_SKEW}; }