From e2954dd9d52420d185ba3763f1daddbbeafe9518 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Fri, 16 Sep 2022 19:03:02 +0200 Subject: [PATCH] - floatified ceilIsTooLow --- source/games/blood/src/nnexts.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/source/games/blood/src/nnexts.cpp b/source/games/blood/src/nnexts.cpp index 142361814..22dcba9cc 100644 --- a/source/games/blood/src/nnexts.cpp +++ b/source/games/blood/src/nnexts.cpp @@ -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; }