mirror of
https://gitlab.com/Scribble/gdlenhanced.git
synced 2026-08-17 14:23:04 -04:00
19 lines
410 B
C++
19 lines
410 B
C++
|
|
#include <StdAfx.h>
|
|
#include "ServerCellManager.h"
|
|
#include "World.h"
|
|
#include "WorldLandBlock.h"
|
|
|
|
ServerCellManager::ServerCellManager()
|
|
{
|
|
}
|
|
|
|
ServerCellManager::~ServerCellManager()
|
|
{
|
|
}
|
|
|
|
CObjCell *ServerCellManager::GetObjCell(uint32_t cell_id, bool bDoPostLoad)
|
|
{
|
|
CWorldLandBlock *wlb = g_pWorld->GetLandblock((WORD)(cell_id >> 16), true);
|
|
return wlb->GetObjCell((WORD)(cell_id & 0xFFFF), bDoPostLoad);
|
|
}
|