diff options
| author | click <none@none> | 2010-07-27 17:29:33 +0200 | 
|---|---|---|
| committer | click <none@none> | 2010-07-27 17:29:33 +0200 | 
| commit | e5b7f6ad01cbf85c6212f0cc4e8584c621f225b7 (patch) | |
| tree | 2a007a1272a4cccd060bd3171c8aed4fb9c65e05 /src/server/collision/Management/IVMapManager.h | |
| parent | dbd76ef9edce23543c1d1732269c889da79fc350 (diff) | |
Add option for search distance to getHeight() functions and make Creature::FallGround() use VMaps properly. (Fix by Lynx3d)
This finally prevents flying creatures from falling to infinity (basically instantly diappearing) in several instances, aswell
as prevent creatures from falling inside larger solid object around the world.
--HG--
branch : trunk
Diffstat (limited to 'src/server/collision/Management/IVMapManager.h')
| -rw-r--r-- | src/server/collision/Management/IVMapManager.h | 2 | 
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server/collision/Management/IVMapManager.h b/src/server/collision/Management/IVMapManager.h index 6a0e7179fa7..59262d14379 100644 --- a/src/server/collision/Management/IVMapManager.h +++ b/src/server/collision/Management/IVMapManager.h @@ -61,7 +61,7 @@ namespace VMAP              virtual void unloadMap(unsigned int pMapId) = 0;              virtual bool isInLineOfSight(unsigned int pMapId, float x1, float y1, float z1, float x2, float y2, float z2) = 0; -            virtual float getHeight(unsigned int pMapId, float x, float y, float z) = 0; +            virtual float getHeight(unsigned int pMapId, float x, float y, float z, float maxSearchDist) = 0;              /**              test if we hit an object. return true if we hit one. rx,ry,rz will hold the hit position or the dest position, if no intersection was found              return a position, that is pReduceDist closer to the origin  | 
