diff options
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); |