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/environment.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/environment.h') diff --git a/src/environment.h b/src/environment.h index 9e282476f..8cc0bcd7e 100644 --- a/src/environment.h +++ b/src/environment.h @@ -500,6 +500,10 @@ public: { m_player_names.push_back(name); } void removePlayerName(std::string name) { m_player_names.remove(name); } + void updateCameraOffset(v3s16 camera_offset) + { m_camera_offset = camera_offset; } + v3s16 getCameraOffset() + { return m_camera_offset; } private: ClientMap *m_map; @@ -515,6 +519,7 @@ private: IntervalLimiter m_drowning_interval; IntervalLimiter m_breathing_interval; std::list m_player_names; + v3s16 m_camera_offset; }; #endif -- cgit v1.2.3