summaryrefslogtreecommitdiffstats
path: root/src/game/client/entity/camera.cc
diff options
context:
space:
mode:
authoruntodesu <kirill@untode.su>2026-01-05 02:41:34 +0500
committeruntodesu <kirill@untode.su>2026-01-05 02:41:34 +0500
commit415e6c8d3f19583aca1fc2b606ac32e317024630 (patch)
tree994fc00939910f78c176f9415e8bba51f670d854 /src/game/client/entity/camera.cc
parent915e52157208af9b41dd52892e7138c8c440e85b (diff)
downloadvoxelius-415e6c8d3f19583aca1fc2b606ac32e317024630.tar.bz2
voxelius-415e6c8d3f19583aca1fc2b606ac32e317024630.zip
Keep trying to figure collision out
Diffstat (limited to 'src/game/client/entity/camera.cc')
-rw-r--r--src/game/client/entity/camera.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/game/client/entity/camera.cc b/src/game/client/entity/camera.cc
index 8cd08fd..ac8ded9 100644
--- a/src/game/client/entity/camera.cc
+++ b/src/game/client/entity/camera.cc
@@ -104,7 +104,7 @@ void camera::update(void)
auto client_angles = camera::angles;
- if(!toggles::get(TOGGLE_PM_FLIGHT) && globals::dimension->entities.try_get<Grounded>(globals::player)) {
+ if(!toggles::get(TOGGLE_PM_FLIGHT)) {
client_angles[2] = math::radians(-camera::roll_angle.get_value() * glm::dot(velocity.value / PMOVE_MAX_SPEED_GROUND, right_vector));
}