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:
Edward Richardson 2014-02-12 20:30:37 +13:00
parent 3cff307e77
commit 0db82f02cf

View file

@ -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);
if (planez < z) return false;
if (planez < z && !(planez < thing->floorz)) return false;
}
#endif
hsec = sec->GetHeightSec();