mirror of
https://github.com/ZDoom/Raze.git
synced 2024-11-29 15:32:24 +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
860bd19738
commit
bf3319d5ec
1 changed files with 1 additions and 1 deletions
|
@ -662,7 +662,7 @@ void MoveSectorSprites(sectortype* pSector, double z)
|
||||||
while (auto pActor = it.Next())
|
while (auto pActor = it.Next())
|
||||||
{
|
{
|
||||||
double actz = pActor->spr.pos.Z;
|
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;
|
pActor->spr.pos.Z = newz;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue