mirror of
https://port.numenaute.org/aleajactaest/khanat-code-old.git
synced 2024-11-22 14:56:13 +00:00
Fixed: Servers compilation
This commit is contained in:
parent
5152d83666
commit
1fdd44a673
6 changed files with 10 additions and 10 deletions
|
@ -282,10 +282,10 @@ CMoveGrid<T, CELLS, CSIZE>::~CMoveGrid()
|
||||||
while ((node = cellNode->NodeList.getHead()) != NULL)
|
while ((node = cellNode->NodeList.getHead()) != NULL)
|
||||||
{
|
{
|
||||||
cellNode->NodeList.remove(node);
|
cellNode->NodeList.remove(node);
|
||||||
_NodeAllocator.free(node);
|
_NodeAllocator.freeBlock(node);
|
||||||
}
|
}
|
||||||
list.remove(cellNode);
|
list.remove(cellNode);
|
||||||
_CellNodeAllocator.free(cellNode);
|
_CellNodeAllocator.freeBlock(cellNode);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -227,7 +227,7 @@ CMoveGrid<T, CELLS, CSIZE>::~CMoveGrid()
|
||||||
while ((node = list.getHead()) != NULL)
|
while ((node = list.getHead()) != NULL)
|
||||||
{
|
{
|
||||||
list.remove(node);
|
list.remove(node);
|
||||||
_NodeAllocator.free(node);
|
_NodeAllocator.freeBlock(node);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -282,7 +282,7 @@ void CMoveGrid<T, CELLS, CSIZE>::remove(CIterator &it)
|
||||||
|
|
||||||
it._Node = NULL;
|
it._Node = NULL;
|
||||||
|
|
||||||
_NodeAllocator.free(node);
|
_NodeAllocator.freeBlock(node);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -191,7 +191,7 @@ public:
|
||||||
static CCell *create() { return _CellAllocator.allocate(); }
|
static CCell *create() { return _CellAllocator.allocate(); }
|
||||||
|
|
||||||
/// Removes an entity (delete equivalent).
|
/// Removes an entity (delete equivalent).
|
||||||
static void remove(CCell *cell) { _CellAllocator.free(cell); }
|
static void remove(CCell *cell) { _CellAllocator.freeBlock(cell); }
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
||||||
|
|
|
@ -381,10 +381,10 @@ void CMoveGrid<T, CELLS, CSIZE>::clear()
|
||||||
while ((node = cellNode->NodeList.getHead()) != NULL)
|
while ((node = cellNode->NodeList.getHead()) != NULL)
|
||||||
{
|
{
|
||||||
cellNode->NodeList.remove(node);
|
cellNode->NodeList.remove(node);
|
||||||
_NodeAllocator.free(node);
|
_NodeAllocator.freeBlock(node);
|
||||||
}
|
}
|
||||||
list.remove(cellNode);
|
list.remove(cellNode);
|
||||||
_CellNodeAllocator.free(cellNode);
|
_CellNodeAllocator.freeBlock(cellNode);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -482,7 +482,7 @@ void CMoveGrid<T, CELLS, CSIZE>::remove(CIterator &it)
|
||||||
removeNode(it);
|
removeNode(it);
|
||||||
it._Node = NULL;
|
it._Node = NULL;
|
||||||
|
|
||||||
_NodeAllocator.free(node);
|
_NodeAllocator.freeBlock(node);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -67,7 +67,7 @@ void CWorldEntity::remove(CWorldEntity* entity)
|
||||||
{
|
{
|
||||||
CWorldPositionManager::_PrimitivedList.erase(entity->PrimIterator);
|
CWorldPositionManager::_PrimitivedList.erase(entity->PrimIterator);
|
||||||
}
|
}
|
||||||
_EntityAllocator.free(entity);
|
_EntityAllocator.freeBlock(entity);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -461,7 +461,7 @@ public:
|
||||||
static CPlayerInfos *create() { return _PlayerAllocator.allocate(); }
|
static CPlayerInfos *create() { return _PlayerAllocator.allocate(); }
|
||||||
|
|
||||||
/// Removes an entity (delete equivalent).
|
/// Removes an entity (delete equivalent).
|
||||||
static void remove(CPlayerInfos *player) { _PlayerAllocator.free(player); }
|
static void remove(CPlayerInfos *player) { _PlayerAllocator.freeBlock(player); }
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue