summaryrefslogtreecommitdiff
path: root/src/clientmap.h
diff options
context:
space:
mode:
authorNovatux <nathanael.courant@laposte.net>2014-01-26 11:40:21 +0100
committerNovatux <nathanael.courant@laposte.net>2014-03-04 20:12:10 +0100
commit062de11b4cff30861dd4e9eb56f131d821f34b51 (patch)
tree37bdcbacb355abfe1f8091307222e430e58b78d8 /src/clientmap.h
parent8e15179e7d896851c6f5814fc6524c86b26ce2e3 (diff)
downloadminetest-062de11b4cff30861dd4e9eb56f131d821f34b51.tar.gz
minetest-062de11b4cff30861dd4e9eb56f131d821f34b51.tar.bz2
minetest-062de11b4cff30861dd4e9eb56f131d821f34b51.zip
Fix rendering glitches when far from the center of the map
Diffstat (limited to 'src/clientmap.h')
-rw-r--r--src/clientmap.h4
1 files changed, 3 insertions, 1 deletions
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<v3s16, MapBlock*> m_drawlist;