- moved all 'sectorptr - &level.sectors[0]' constructs into a subfunction.

This commit is contained in:
Christoph Oelckers 2017-01-07 20:02:25 +01:00
commit 91981e25a8
13 changed files with 23 additions and 30 deletions

View file

@ -764,7 +764,7 @@ void ProcessEDSectors()
{
if (lines[i].special == Static_Init && lines[i].args[1] == Init_EDSector)
{
sectorrecord[lines[i].frontsector - &level.sectors[0]] = lines[i].args[0];
sectorrecord[lines[i].frontsector->Index()] = lines[i].args[0];
lines[i].special = 0;
}
}