mirror of
https://github.com/luanti-org/luanti.git
synced 2025-07-02 16:38:41 +00:00
l_server, clientenvironment, clientiface: code modernization
* use range-based for loops * use refs on some exceptions & one setter
This commit is contained in:
parent
9c8fec83af
commit
3e80bf933f
4 changed files with 37 additions and 58 deletions
|
@ -139,7 +139,7 @@ public:
|
|||
const std::list<std::string> &getPlayerNames() { return m_player_names; }
|
||||
void addPlayerName(const std::string &name) { m_player_names.push_back(name); }
|
||||
void removePlayerName(const std::string &name) { m_player_names.remove(name); }
|
||||
void updateCameraOffset(v3s16 camera_offset)
|
||||
void updateCameraOffset(const v3s16 &camera_offset)
|
||||
{ m_camera_offset = camera_offset; }
|
||||
v3s16 getCameraOffset() const { return m_camera_offset; }
|
||||
private:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue