- 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:
Christoph Oelckers 2021-12-06 18:17:45 +01:00
parent 6d432fca0a
commit 838bed7800
10 changed files with 38 additions and 63 deletions

View file

@ -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();