diff options
author | aven_coda <none@none> | 2009-07-09 18:06:08 +0200 |
---|---|---|
committer | aven_coda <none@none> | 2009-07-09 18:06:08 +0200 |
commit | b39bff681f41b12c483d2fa0a58623bd26ff5871 (patch) | |
tree | 619fde170568437df9ef1d0cd659212eb117a464 /src/game/Map.cpp | |
parent | 5206cd8a4ebc42c3c08d5d933f986298676b2d6d (diff) |
*Allow to fish in shallow water.
--HG--
branch : trunk
Diffstat (limited to 'src/game/Map.cpp')
-rw-r--r-- | src/game/Map.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/game/Map.cpp b/src/game/Map.cpp index 044d48cac36..4d6c10107eb 100644 --- a/src/game/Map.cpp +++ b/src/game/Map.cpp @@ -1989,7 +1989,7 @@ void Map::GetZoneAndAreaIdByAreaFlag(uint32& zoneid, uint32& areaid, uint16 area zoneid = entry ? (( entry->zone != 0 ) ? entry->zone : entry->ID) : 0; } -bool Map::IsInWater(float x, float y, float pZ) const +bool Map::IsInWater(float x, float y, float pZ, float min_depth) const { // Check surface in x, y point for liquid if (GridMap* gmap = const_cast<Map*>(this)->GetGrid(x, y)) @@ -1997,7 +1997,7 @@ bool Map::IsInWater(float x, float y, float pZ) const LiquidData liquid_status; if (getLiquidStatus(x, y, pZ, MAP_ALL_LIQUIDS, &liquid_status)) { - if (liquid_status.level - liquid_status.depth_level > 2) + if (liquid_status.level - liquid_status.depth_level > min_depth) return true; } } |