Rename ...New/...Free to ...Create/...Destroy
This commit is contained in:
@@ -15,14 +15,14 @@ EntityMap entityMapCreate(const EntityMapDesc *desc) {
|
||||
size_t numBytes = sizeof(EntityMapCell) * map.width * map.height * map.cellDepth;
|
||||
map.cells = bzAlloc(numBytes);
|
||||
bzMemSet(map.cells, 0, numBytes);
|
||||
map.entities = bzArrayNew(EntityMapEntry, 512);
|
||||
map.entities = bzArrayCreate(EntityMapEntry, 512);
|
||||
|
||||
return map;
|
||||
}
|
||||
void entityMapDestroy(EntityMap *entityMap) {
|
||||
bzFree(entityMap->cells);
|
||||
entityMap->cells = NULL;
|
||||
bzArrayFree(entityMap->entities);
|
||||
bzArrayDestroy(entityMap->entities);
|
||||
entityMap->entities = NULL;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user