Skip to content

Commit

Permalink
- blood: GetHighestSprite fix
Browse files Browse the repository at this point in the history
copied from NBlood f984eb8f5cb52653c301e015e34e8471d9ed8b7c
  • Loading branch information
coelckers committed May 5, 2022
1 parent d85a8b6 commit 8349974
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source/games/blood/src/triggers.cpp
Expand Up @@ -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;
}
}
Expand Down

0 comments on commit 8349974

Please sign in to comment.