]> git.lizzy.rs Git - minetest.git/blobdiff - src/clientenvironment.h
map.cpp: Initialize NodeNeighbor, set NeighborType to u8 & cleanup
[minetest.git] / src / clientenvironment.h
index 35dca5718c411c1222c0a3571fccee30f8b5a3c7..61ed687ca2775946094346f41213b43255344866 100644 (file)
@@ -17,11 +17,10 @@ with this program; if not, write to the Free Software Foundation, Inc.,
 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
 */
 
-#ifndef CLIENT_ENVIRONMENT_HEADER
-#define CLIENT_ENVIRONMENT_HEADER
+#pragma once
 
-#include <ISceneManager.h>
 #include "environment.h"
+#include <ISceneManager.h>
 #include "clientobject.h"
 #include "util/numeric.h"
 
@@ -139,7 +138,7 @@ class ClientEnvironment : public Environment
        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:
@@ -158,5 +157,3 @@ class ClientEnvironment : public Environment
        std::list<std::string> m_player_names;
        v3s16 m_camera_offset;
 };
-
-#endif