mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-24 13:01:47 +00:00
P_HitWater ignore extra floors below real floor
P_HitWater incorrectly assumed extra floors were always above the real floor.
This commit is contained in:
parent
3cff307e77
commit
0db82f02cf
1 changed files with 1 additions and 1 deletions
|
@ -5169,7 +5169,7 @@ bool P_HitWater (AActor * thing, sector_t * sec, fixed_t x, fixed_t y, fixed_t z
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
planez = rover->bottom.plane->ZatPoint(x, y);
|
planez = rover->bottom.plane->ZatPoint(x, y);
|
||||||
if (planez < z) return false;
|
if (planez < z && !(planez < thing->floorz)) return false;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
hsec = sec->GetHeightSec();
|
hsec = sec->GetHeightSec();
|
||||||
|
|
Loading…
Reference in a new issue