mirror of
https://github.com/ZDoom/Raze.git
synced 2025-04-11 10:21:09 +00:00
- blood: GetHighestSprite fix
copied from NBlood f984eb8f5cb52653c301e015e34e8471d9ed8b7c
This commit is contained in:
parent
d85a8b6507
commit
83499740c3
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue