mirror of
https://port.numenaute.org/aleajactaest/khanat-code-old.git
synced 2024-11-10 01:09:34 +00:00
Merge with develop
This commit is contained in:
parent
1e8d28759a
commit
03aeffdda7
9 changed files with 13 additions and 14 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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -5489,7 +5489,7 @@ NLMISC_COMMAND (webExecCommand, "Execute a web command", "<user id> <web_app_url
|
||||||
if (command_args.size() > 8)
|
if (command_args.size() > 8)
|
||||||
{
|
{
|
||||||
if (command_args[8] != "*") {
|
if (command_args[8] != "*") {
|
||||||
NLMISC::fromString(command_args[7], z);
|
NLMISC::fromString(command_args[8], z);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -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:
|
||||||
|
|
||||||
|
|
|
@ -1864,7 +1864,6 @@ void CStringManager::init(NLMISC::CLog *log)
|
||||||
|
|
||||||
if (_SheetInfo.empty())
|
if (_SheetInfo.empty())
|
||||||
{
|
{
|
||||||
// std::map<std::string, TSheetInfo> container;
|
|
||||||
// Load the sheet
|
// Load the sheet
|
||||||
std::vector<std::string> exts;
|
std::vector<std::string> exts;
|
||||||
exts.push_back("creature");
|
exts.push_back("creature");
|
||||||
|
|
Loading…
Reference in a new issue