From f82d5cb3fcef169cf7a62f83935fa6d6b105589d Mon Sep 17 00:00:00 2001 From: silver1ce Date: Wed, 6 Jan 2010 12:15:02 +0200 Subject: fixed the bug that GetVmapHeight returns incorrect height on terrains(flying units fall below map etc) also unlocked max ray lenght for getHeight, by default it's 10 yards --HG-- branch : trunk --- src/shared/vmap/IVMapManager.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/shared/vmap/IVMapManager.h') diff --git a/src/shared/vmap/IVMapManager.h b/src/shared/vmap/IVMapManager.h index 243a15aef73..71ef5f72c6f 100644 --- a/src/shared/vmap/IVMapManager.h +++ b/src/shared/vmap/IVMapManager.h @@ -22,6 +22,7 @@ #define _IVMAPMANAGER_H #include +#include "VMapDefinitions.h" //=========================================================== @@ -62,7 +63,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 ray_lenght = MAX_CAN_FALL_DISTANCE) = 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 -- cgit v1.2.3