1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-06-27 16:36:03 +00:00

Move ClientMap to clientmap.{h,cpp}

This commit is contained in:
Perttu Ahola 2012-03-16 00:25:18 +02:00
parent 54917e3062
commit 58bed83d03
12 changed files with 717 additions and 666 deletions

View file

@ -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);