diff options
author | Perttu Ahola <celeron55@gmail.com> | 2012-03-16 00:25:18 +0200 |
---|---|---|
committer | Perttu Ahola <celeron55@gmail.com> | 2012-03-16 00:25:18 +0200 |
commit | 58bed83d03bbe53f8286640fbc33043800e1c318 (patch) | |
tree | d46f290560c012d68200cc57898e6a7b3e0df2ae /src/environment.cpp | |
parent | 54917e306256d4d39b95335986fce93b8c56a6e3 (diff) | |
download | minetest-58bed83d03bbe53f8286640fbc33043800e1c318.tar.gz minetest-58bed83d03bbe53f8286640fbc33043800e1c318.tar.bz2 minetest-58bed83d03bbe53f8286640fbc33043800e1c318.zip |
Move ClientMap to clientmap.{h,cpp}
Diffstat (limited to 'src/environment.cpp')
-rw-r--r-- | src/environment.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/environment.cpp b/src/environment.cpp index c3ff7b75a..93649eed5 100644 --- a/src/environment.cpp +++ b/src/environment.cpp @@ -38,6 +38,9 @@ with this program; if not, write to the Free Software Foundation, Inc., #include "main.h" // For g_settings, g_profiler #include "gamedef.h" #include "serverremoteplayer.h" +#ifndef SERVER +#include "clientmap.h" +#endif #define PP(x) "("<<(x).X<<","<<(x).Y<<","<<(x).Z<<")" @@ -1820,6 +1823,16 @@ ClientEnvironment::~ClientEnvironment() m_map->drop(); } +Map & ClientEnvironment::getMap() +{ + return *m_map; +} + +ClientMap & ClientEnvironment::getClientMap() +{ + return *m_map; +} + void ClientEnvironment::addPlayer(Player *player) { DSTACK(__FUNCTION_NAME); |