diff --git a/source/games/duke/src/player.cpp b/source/games/duke/src/player.cpp index 882654ff8..108f9efa0 100644 --- a/source/games/duke/src/player.cpp +++ b/source/games/duke/src/player.cpp @@ -1003,7 +1003,7 @@ void purplelavacheck(player_struct* p) { auto sect = pact->sector(); // one texflag for a single texture again, just to avoid one hard coded check... - if ((tilesurface(sect->floortexture) & TSURF_PURPLELAVA) || (tilesurface(sect->ceilingtexture) & TSURF_PURPLELAVA)) + if ((tilesurface(sect->floortexture) == TSURF_PURPLELAVA) || (tilesurface(sect->ceilingtexture) == TSURF_PURPLELAVA)) { if (p->boot_amount > 0) {