Веб-сайт самохостера Lotigara

summaryrefslogtreecommitdiff
path: root/source/game/StarPlayer.cpp
diff options
context:
space:
mode:
authorKae <80987908+Novaenia@users.noreply.github.com>2024-03-15 16:26:12 +1100
committerKae <80987908+Novaenia@users.noreply.github.com>2024-03-15 16:26:12 +1100
commit696abcca71274fbda2470f1941cb2e06b6ff8c61 (patch)
treeb3ba52a56383acbd5c3fa504cff3601a081b2b2e /source/game/StarPlayer.cpp
parent658fab846e401b956530739f9ab4dce192362027 (diff)
fix late aimPosition
Diffstat (limited to 'source/game/StarPlayer.cpp')
-rw-r--r--source/game/StarPlayer.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/source/game/StarPlayer.cpp b/source/game/StarPlayer.cpp
index e57400a..e9f0daf 100644
--- a/source/game/StarPlayer.cpp
+++ b/source/game/StarPlayer.cpp
@@ -900,7 +900,9 @@ void Player::update(float dt, uint64_t) {
m_tools->effects(*m_effectEmitter);
+ auto aimRelative = world()->geometry().diff(m_aimPosition, position()); // dumb, but due to how things are ordered
m_movementController->tickMaster(dt);
+ m_aimPosition = position() + aimRelative; // it's gonna have to be like this for now
m_techController->tickMaster(dt);