- use a TArrayView to store the wall references in a sector.

This is a lot more scripting friendly than hacking around the indices.
This commit is contained in:
Christoph Oelckers 2022-11-15 14:53:39 +01:00
parent 9a676ffba6
commit bfae5ce1bc
10 changed files with 113 additions and 124 deletions

View file

@ -40,6 +40,7 @@
#include "maptypes.h"
#include "hw_sections.h"
#include "mapinfo.h"
#include "gamefuncs.h"
//==========================================================================
//
@ -124,7 +125,7 @@ DEFINE_ACTION_FUNCTION(DLevelPostProcessor, SplitSector)
if (sectornum < sector.Size())
{
int sectstart = sector[sectornum].wall_index();
int sectstart = wallindex(sector[sectornum].firstWall());
if (firstwall >= sectstart && firstwall < sectstart + sector[sectornum].wall_count() &&
secondwall >= sectstart && secondwall < sectstart + sector[sectornum].wall_count())