summaryrefslogtreecommitdiff
path: root/src/environment.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/environment.h')
-rw-r--r--src/environment.h5
1 files changed, 5 insertions, 0 deletions
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<std::string> m_player_names;
+ v3s16 m_camera_offset;
};
#endif