Skip to content

Commit

Permalink
Further improve traversing adjacent liquid sectors at different heights
Browse files Browse the repository at this point in the history
  • Loading branch information
bradharding committed Dec 9, 2024
1 parent efe17cc commit 02f7efa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/p_map.c
Original file line number Diff line number Diff line change
Expand Up @@ -1006,7 +1006,7 @@ bool P_IsInLiquid(mobj_t *thing)
}

return (highestsector->terraintype >= LIQUID && !highestsector->isselfreferencing
&& !(thing->flags & MF_NOGRAVITY));
&& (thing->player || thing->z == highestsector->floorheight));
}

//
Expand Down

0 comments on commit 02f7efa

Please sign in to comment.