From 86278fc79c5586641ec5834bc1dce0c85623dbe9 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Thu, 5 Mar 2020 21:14:45 +0100 Subject: [PATCH] - fixed bad annotation. --- source/blood/src/nnexts.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/blood/src/nnexts.cpp b/source/blood/src/nnexts.cpp index 069bfc5f0..0a2c5cb97 100644 --- a/source/blood/src/nnexts.cpp +++ b/source/blood/src/nnexts.cpp @@ -1734,8 +1734,8 @@ void useEffectGen(XSPRITE* pXSource, spritetype* pSprite) { break; case 3: case 4: - // if (!sectRangeIsFine(pSprite->sectnum)) f allthrough__; Code is wrong - pos = (pXSource->data4 == 3) ? sector[pSprite->sectnum].floorz : sector[pSprite->sectnum].ceilingz; + if (!sectRangeIsFine(pSprite->sectnum)) pos = top; + else pos = (pXSource->data4 == 3) ? sector[pSprite->sectnum].floorz : sector[pSprite->sectnum].ceilingz; break; default: pos = top;