allocates global map storage. Blood will also call this.
| 411 | |
| 412 | // allocates global map storage. Blood will also call this. |
| 413 | void 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 | |
| 432 | void fixSectors() |
| 433 | { |
no test coverage detected