- moved all 'sectorptr - &level.sectors[0]' constructs into a subfunction.
This commit is contained in:
parent
c02281a439
commit
91981e25a8
13 changed files with 23 additions and 30 deletions
|
|
@ -3961,9 +3961,9 @@ void AActor::Tick ()
|
|||
sector_t *sec = node->m_sector;
|
||||
DVector2 scrollv;
|
||||
|
||||
if (level.Scrolls.Size() > unsigned(sec-&level.sectors[0]))
|
||||
if (level.Scrolls.Size() > unsigned(sec->Index()))
|
||||
{
|
||||
scrollv = level.Scrolls[sec - &level.sectors[0]];
|
||||
scrollv = level.Scrolls[sec->Index()];
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue