mirror of
https://github.com/DrBeef/Raze.git
synced 2024-11-25 13:31:55 +00:00
- Exhumed: account for rounding errors in MoveSectorSprites
The formula here left no margin for error and minor rounding errors are inevitable with this code.
This commit is contained in:
parent
cfef8c8a71
commit
2e35d6a6a8
1 changed files with 1 additions and 1 deletions
|
@ -662,7 +662,7 @@ void MoveSectorSprites(sectortype* pSector, double z)
|
|||
while (auto pActor = it.Next())
|
||||
{
|
||||
double actz = pActor->spr.pos.Z;
|
||||
if ((pActor->spr.statnum != 200 && actz >= minz && actz <= maxz) || pActor->spr.statnum >= 900)
|
||||
if ((pActor->spr.statnum != 200 && actz > minz - zmaptoworld && actz < maxz + zmaptoworld) || pActor->spr.statnum >= 900)
|
||||
{
|
||||
pActor->spr.pos.Z = newz;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue