From 5f6cd0da7963d411ab35cb2b8e0e1bf39c179184 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Tue, 13 Dec 2022 12:01:34 +0100 Subject: [PATCH] - Duke/RR: fixed floor alignment of flames in sloped sectors --- source/games/duke/src/animatesprites_d.cpp | 2 +- source/games/duke/src/animatesprites_r.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/source/games/duke/src/animatesprites_d.cpp b/source/games/duke/src/animatesprites_d.cpp index 8ef66c157..258140ab2 100644 --- a/source/games/duke/src/animatesprites_d.cpp +++ b/source/games/duke/src/animatesprites_d.cpp @@ -324,7 +324,7 @@ void animatesprites_d(tspriteArray& tsprites, const DVector2& viewVec, DAngle vi case DTILE_BURNING: case DTILE_BURNING2: if (!OwnerAc || !actorflag(OwnerAc, SFLAG_NOFLOORFIRE)) - t->pos.Z = t->sectp->floorz; + t->pos.Z = getflorzofslopeptr(t->sectp, t->pos); t->shade = -127; break; case DTILE_PLAYERONWATER: diff --git a/source/games/duke/src/animatesprites_r.cpp b/source/games/duke/src/animatesprites_r.cpp index 5ad4d5c7e..c73478b6b 100644 --- a/source/games/duke/src/animatesprites_r.cpp +++ b/source/games/duke/src/animatesprites_r.cpp @@ -376,7 +376,7 @@ void animatesprites_r(tspriteArray& tsprites, const DVector2& viewVec, DAngle vi case RTILE_FIRE: case RTILE_BURNING: if (!OwnerAc || !actorflag(OwnerAc, SFLAG_NOFLOORFIRE)) - t->pos.Z = t->sectp->floorz; + t->pos.Z = getflorzofslopeptr(t->sectp, t->pos); t->shade = -127; break; case RTILE_CHEER: