mirror of
https://github.com/ZDoom/Raze.git
synced 2025-05-24 22:02:50 +00:00
- final cleanup of sectnum related stuff.
Made sure that remaining uses of sector indices are safe to be kept and deleted a few redundant functions.
This commit is contained in:
parent
6d432fca0a
commit
838bed7800
10 changed files with 38 additions and 63 deletions
|
@ -1,5 +1,6 @@
|
|||
#pragma once
|
||||
#include "build.h"
|
||||
#include "gamefuncs.h"
|
||||
|
||||
class FSerializer;
|
||||
struct IntRect;
|
||||
|
@ -56,7 +57,7 @@ inline void mergePortals()
|
|||
{
|
||||
for (unsigned t = 0; t < pt2.targets.Size(); t++)
|
||||
{
|
||||
if (findwallbetweensectors(pt1.targets[s], pt2.targets[t]) >= 0)
|
||||
if (sectorsConnected(pt1.targets[s], pt2.targets[t]))
|
||||
{
|
||||
pt1.targets.Append(pt2.targets);
|
||||
pt2.targets.Reset();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue