diff options
author | megamage <none@none> | 2009-01-17 13:34:43 -0600 |
---|---|---|
committer | megamage <none@none> | 2009-01-17 13:34:43 -0600 |
commit | 8739ded05dbf68486551531024f1ad8ad7b389cf (patch) | |
tree | 87f71484a1fa5b4578fc46bebafa4adc64078fc2 /src/game/Map.cpp | |
parent | fa2e6622ad9dca5051b451e14ea303670ec65fa6 (diff) | |
parent | f414ab1686c300787e3dfb0c397227062b8feea6 (diff) |
*Merge.
--HG--
branch : trunk
Diffstat (limited to 'src/game/Map.cpp')
-rw-r--r-- | src/game/Map.cpp | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/src/game/Map.cpp b/src/game/Map.cpp index cdc78ca41a5..c90effba476 100644 --- a/src/game/Map.cpp +++ b/src/game/Map.cpp @@ -1287,25 +1287,6 @@ float Map::GetVmapHeight(float x, float y, float z, bool useMaps) const uint16 Map::GetAreaFlag(float x, float y, float z) const { - float mapHeight; - float vmapHeight; - if (useMaps) - { - mapHeight = GetHeight(x, y, z, false); - if (fabs(mapHeight - z) < 0.1) - return mapHeight; - } - else - mapHeight = INVALID_HEIGHT; - VMAP::IVMapManager* vmgr = VMAP::VMapFactory::createOrGetVMapManager(); - if (vmgr->isLineOfSightCalcEnabled()) - bool result = vmgr->getObjectHitPos(GetId(), x, y, z + 2.0f, x, y, mapHeight, x, y, vmapHeight, 0); - else - return INVALID_HEIGHT; - return vmapHeight; -} - -{ //local x,y coords float lx,ly; int gx,gy; |