mirror of
https://github.com/ZDoom/Raze.git
synced 2025-03-13 20:42:11 +00:00
- floatified ceilIsTooLow
This commit is contained in:
parent
02aee7f8aa
commit
e2954dd9d5
1 changed files with 3 additions and 4 deletions
|
@ -1889,11 +1889,10 @@ bool ceilIsTooLow(DBloodActor* actor)
|
|||
if (actor != nullptr)
|
||||
{
|
||||
sectortype* pSector = actor->sector();
|
||||
int a = pSector->int_ceilingz() - pSector->int_floorz();
|
||||
int top, bottom;
|
||||
double a = pSector->ceilingz - pSector->floorz;
|
||||
double top, bottom;
|
||||
GetActorExtents(actor, &top, &bottom);
|
||||
int b = top - bottom;
|
||||
if (a > b) return true;
|
||||
if (a > top - bottom) return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue