Skip to content

Commit

Permalink
Fix clipping flying monsters over liquid sectors
Browse files Browse the repository at this point in the history
  • Loading branch information
bradharding committed Dec 8, 2024
1 parent 4d9437a commit efe17cc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/p_map.c
Original file line number Diff line number Diff line change
Expand Up @@ -1005,7 +1005,8 @@ bool P_IsInLiquid(mobj_t *thing)
highestsector = sector;
}

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

//
Expand Down

0 comments on commit efe17cc

Please sign in to comment.