From 062de11b4cff30861dd4e9eb56f131d821f34b51 Mon Sep 17 00:00:00 2001 From: Novatux Date: Sun, 26 Jan 2014 11:40:21 +0100 Subject: Fix rendering glitches when far from the center of the map --- src/clientmap.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/clientmap.h') diff --git a/src/clientmap.h b/src/clientmap.h index f36e6127c..e695411be 100644 --- a/src/clientmap.h +++ b/src/clientmap.h @@ -86,12 +86,13 @@ public: ISceneNode::drop(); } - void updateCamera(v3f pos, v3f dir, f32 fov) + void updateCamera(v3f pos, v3f dir, f32 fov, v3s16 offset) { JMutexAutoLock lock(m_camera_mutex); m_camera_position = pos; m_camera_direction = dir; m_camera_fov = fov; + m_camera_offset = offset; } /* @@ -146,6 +147,7 @@ private: v3f m_camera_position; v3f m_camera_direction; f32 m_camera_fov; + v3s16 m_camera_offset; JMutex m_camera_mutex; std::map m_drawlist; -- cgit v1.2.3