Fixes creatures not pathing though water.
This commit is contained in:
@@ -602,9 +602,9 @@ namespace Game.Maps
|
|||||||
|
|
||||||
if (delta > collisionHeight) // Under water
|
if (delta > collisionHeight) // Under water
|
||||||
status = ZLiquidStatus.UnderWater;
|
status = ZLiquidStatus.UnderWater;
|
||||||
if (delta > 0.0f) // In water
|
else if (delta > 0.0f) // In water
|
||||||
status = ZLiquidStatus.InWater;
|
status = ZLiquidStatus.InWater;
|
||||||
if (delta > -0.1f) // Walk on water
|
else if (delta > -0.1f) // Walk on water
|
||||||
status = ZLiquidStatus.WaterWalk;
|
status = ZLiquidStatus.WaterWalk;
|
||||||
|
|
||||||
if (status != ZLiquidStatus.AboveWater)
|
if (status != ZLiquidStatus.AboveWater)
|
||||||
|
|||||||
@@ -643,9 +643,9 @@ namespace Game.Maps
|
|||||||
|
|
||||||
if (delta > collisionHeight) // Under water
|
if (delta > collisionHeight) // Under water
|
||||||
status = ZLiquidStatus.UnderWater;
|
status = ZLiquidStatus.UnderWater;
|
||||||
if (delta > 0.0f) // In water
|
else if (delta > 0.0f) // In water
|
||||||
status = ZLiquidStatus.InWater;
|
status = ZLiquidStatus.InWater;
|
||||||
if (delta > -0.1f) // Walk on water
|
else if (delta > -0.1f) // Walk on water
|
||||||
status = ZLiquidStatus.WaterWalk;
|
status = ZLiquidStatus.WaterWalk;
|
||||||
|
|
||||||
if (status != ZLiquidStatus.AboveWater)
|
if (status != ZLiquidStatus.AboveWater)
|
||||||
|
|||||||
Reference in New Issue
Block a user