MCPcopy Create free account
hub / github.com/ZDoom/Raze / allocateMapArrays

Function allocateMapArrays

source/core/maploader.cpp:413–430  ·  view source on GitHub ↗

allocates global map storage. Blood will also call this.

Source from the content-addressed store, hash-verified

411
412// allocates global map storage. Blood will also call this.
413void allocateMapArrays(int numwall, int numsector, int numsprites)
414{
415 ClearInterpolations();
416
417
418 show2dsector.Resize(numsector);
419 show2dwall.Resize(numwall);
420 gotsector.Resize(numsector);
421 clipsectormap.Resize(numsector);
422
423 mapDataArena.FreeAll();
424 sector.Resize(numsector);
425 memset(sector.Data(), 0, sizeof(sectortype) * numsector);
426 wall.Resize(numwall);
427 memset(wall.Data(), 0, sizeof(walltype) * wall.Size());
428
429 ClearAutomap();
430}
431
432void fixSectors()
433{

Callers 2

dbLoadMapFunction · 0.85
loadMapFunction · 0.85

Calls 6

ClearInterpolationsFunction · 0.85
ClearAutomapFunction · 0.85
FreeAllMethod · 0.80
ResizeMethod · 0.45
DataMethod · 0.45
SizeMethod · 0.45

Tested by

no test coverage detected