mirror of
https://github.com/ZDoom/Raze.git
synced 2025-06-02 18:21:06 +00:00
- eliminate wall_count.
This commit is contained in:
parent
bfae5ce1bc
commit
84b17a8a53
17 changed files with 35 additions and 36 deletions
|
@ -120,14 +120,14 @@ DEFINE_ACTION_FUNCTION(DLevelPostProcessor, SplitSector)
|
|||
{
|
||||
PARAM_SELF_PROLOGUE(DLevelPostProcessor);
|
||||
PARAM_UINT(sectornum);
|
||||
PARAM_INT(firstwall);
|
||||
PARAM_INT(secondwall);
|
||||
PARAM_UINT(firstwall);
|
||||
PARAM_UINT(secondwall);
|
||||
|
||||
if (sectornum < sector.Size())
|
||||
{
|
||||
int sectstart = wallindex(sector[sectornum].firstWall());
|
||||
if (firstwall >= sectstart && firstwall < sectstart + sector[sectornum].wall_count() &&
|
||||
secondwall >= sectstart && secondwall < sectstart + sector[sectornum].wall_count())
|
||||
unsigned sectstart = wallindex(sector[sectornum].firstWall());
|
||||
if (firstwall >= sectstart && firstwall < sectstart + sector[sectornum].walls.Size() &&
|
||||
secondwall >= sectstart && secondwall < sectstart + sector[sectornum].walls.Size())
|
||||
|
||||
hw_SetSplitSector(sectornum, firstwall, secondwall);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue