1
0
mirror of https://github.com/luanti-org/luanti.git synced 2025-10-17 18:35:20 +02:00

Move camera offset to consistent point in game loop

fixes #10027
This commit is contained in:
sfan5
2025-01-17 19:43:54 +01:00
parent e5f276ecee
commit a262be6a47
3 changed files with 65 additions and 39 deletions

View File

@@ -147,6 +147,9 @@ public:
// Update the camera from the local player's position.
void update(LocalPlayer* player, f32 frametime, f32 tool_reload_ratio);
// Adjust the camera offset when needed
void updateOffset();
// Update render distance
void updateViewingRange();