From 58bed83d03bbe53f8286640fbc33043800e1c318 Mon Sep 17 00:00:00 2001 From: Perttu Ahola Date: Fri, 16 Mar 2012 00:25:18 +0200 Subject: Move ClientMap to clientmap.{h,cpp} --- src/environment.cpp | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'src/environment.cpp') 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); -- cgit v1.2.3