Skip to content

Commit

Permalink
- Duke: fixed bad surface check.
Browse files Browse the repository at this point in the history
Surfaces are not bit flags, they are values.
  • Loading branch information
coelckers committed Jan 8, 2023
1 parent deaec2d commit ff33dd7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/games/duke/src/player.cpp
Expand Up @@ -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)
{
Expand Down

0 comments on commit ff33dd7

Please sign in to comment.