- Duke: fixed bad surface check.

Surfaces are not bit flags, they are values.
This commit is contained in:
Christoph Oelckers 2023-01-08 18:32:38 +01:00
parent deaec2d91d
commit ff33dd7188

View file

@ -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)
{