Fixed: getGroundZ uses now float instead of int

--HG--
branch : patches-from-atys
hg/hotfix/patches-from-atys
ulukyn 7 years ago
parent 5d7c8777a1
commit 8b1ead9e77

@ -3487,7 +3487,7 @@ string CLuaIHMRyzom::getRegionByAlias(uint32 alias)
return ContinentMngr.getRegionNameByAlias(alias); return ContinentMngr.getRegionNameByAlias(alias);
} }
sint32 CLuaIHMRyzom::getGroundZ(uint32 x, sint32 y) float CLuaIHMRyzom::getGroundZ(float x, float y)
{ {
CVector vect = UserEntity->pos(); CVector vect = UserEntity->pos();
vect.x = x; vect.x = x;

@ -214,7 +214,7 @@ private:
static sint getCharacterSheetRegionForce(const std::string &sheet); static sint getCharacterSheetRegionForce(const std::string &sheet);
static sint getCharacterSheetRegionLevel(const std::string &sheet); static sint getCharacterSheetRegionLevel(const std::string &sheet);
static std::string getRegionByAlias(uint32 alias); static std::string getRegionByAlias(uint32 alias);
static sint getGroundZ(uint32 x, sint32 y); static float getGroundZ(float x, float y);
static int getGroundAtMouse(CLuaState &ls); static int getGroundAtMouse(CLuaState &ls);
static int getMousePos(CLuaState &ls); static int getMousePos(CLuaState &ls);
static int getMouseDown(CLuaState &ls); static int getMouseDown(CLuaState &ls);

Loading…
Cancel
Save