- blood: GetHighestSprite fix

copied from NBlood f984eb8f5cb52653c301e015e34e8471d9ed8b7c
This commit is contained in:
Christoph Oelckers 2022-05-06 01:28:21 +02:00
parent d85a8b6507
commit 83499740c3

View file

@ -1029,9 +1029,9 @@ DBloodActor* GetHighestSprite(sectortype* pSector, int nStatus, int* z)
{
int top, bottom;
GetActorExtents(actor, &top, &bottom);
if (top - actor->spr.pos.Z > *z)
if (actor->spr.pos.Z - top > *z)
{
*z = top - actor->spr.pos.Z;
*z = actor->spr.pos.Z - top;
found = actor;
}
}