mirror of
https://github.com/ZDoom/Raze.git
synced 2025-06-02 18:21:06 +00:00
- 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:
parent
9a676ffba6
commit
bfae5ce1bc
10 changed files with 113 additions and 124 deletions
|
@ -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())
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue