Skip to content

Commit

Permalink
Revert fix to when player in water up to eye level
Browse files Browse the repository at this point in the history
See 54cb41f. Caused too many problems.
  • Loading branch information
bradharding committed Sep 8, 2024
1 parent 8aeb274 commit 775f800
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/r_segs.c
Original file line number Diff line number Diff line change
Expand Up @@ -676,8 +676,7 @@ void R_StoreWallRange(const int start, const int stop)

// [BH] animate liquid sectors
if (frontsector->terraintype >= LIQUID
&& (viewz > frontsector->interpfloorheight + FRACUNIT * 2 || !P_IsInLiquid(viewplayer->mo))
&& (!frontsector->heightsec || viewz > frontsector->heightsec->interpfloorheight + FRACUNIT * 2)
&& (!frontsector->heightsec || viewz > frontsector->heightsec->interpfloorheight)
&& r_liquid_bob)
worldbottom += animatedliquiddiff;

Expand Down Expand Up @@ -779,8 +778,7 @@ void R_StoreWallRange(const int start, const int stop)
// [BH] animate liquid sectors
if (backsector->terraintype >= LIQUID
&& backsector->interpfloorheight >= frontsector->interpfloorheight
&& (viewz > backsector->interpfloorheight + FRACUNIT * 2 || !P_IsInLiquid(viewplayer->mo))
&& (!backsector->heightsec || viewz > backsector->heightsec->interpfloorheight + FRACUNIT * 2)
&& (!backsector->heightsec || viewz > backsector->heightsec->interpfloorheight)
&& r_liquid_bob)
{
liquidoffset = animatedliquiddiff;
Expand Down

0 comments on commit 775f800

Please sign in to comment.