mirror of
https://github.com/ZDoom/Raze.git
synced 2025-05-31 09:20:59 +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
|
@ -300,6 +300,21 @@ void checkRotatedWalls()
|
|||
}
|
||||
}
|
||||
|
||||
//==========================================================================
|
||||
//
|
||||
// check if two sectors share a wall connection
|
||||
//
|
||||
//==========================================================================
|
||||
|
||||
bool sectorsConnected(int sect1, int sect2)
|
||||
{
|
||||
for (auto& wal : wallsofsector(sect1))
|
||||
{
|
||||
if (wal.nextsector == sect2) return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
//==========================================================================
|
||||
//
|
||||
// vector serializers
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue