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: