From 8b1ead9e777328f07475f3026c2d4640b62b0702 Mon Sep 17 00:00:00 2001 From: ulukyn Date: Fri, 9 Mar 2018 14:08:53 +0100 Subject: [PATCH] Fixed: getGroundZ uses now float instead of int --HG-- branch : patches-from-atys --- code/ryzom/client/src/interface_v3/lua_ihm_ryzom.cpp | 2 +- code/ryzom/client/src/interface_v3/lua_ihm_ryzom.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/code/ryzom/client/src/interface_v3/lua_ihm_ryzom.cpp b/code/ryzom/client/src/interface_v3/lua_ihm_ryzom.cpp index c2f79e04d..0d7059e74 100644 --- a/code/ryzom/client/src/interface_v3/lua_ihm_ryzom.cpp +++ b/code/ryzom/client/src/interface_v3/lua_ihm_ryzom.cpp @@ -3487,7 +3487,7 @@ string CLuaIHMRyzom::getRegionByAlias(uint32 alias) return ContinentMngr.getRegionNameByAlias(alias); } -sint32 CLuaIHMRyzom::getGroundZ(uint32 x, sint32 y) +float CLuaIHMRyzom::getGroundZ(float x, float y) { CVector vect = UserEntity->pos(); vect.x = x; diff --git a/code/ryzom/client/src/interface_v3/lua_ihm_ryzom.h b/code/ryzom/client/src/interface_v3/lua_ihm_ryzom.h index e27c7ee2e..104fb20e6 100644 --- a/code/ryzom/client/src/interface_v3/lua_ihm_ryzom.h +++ b/code/ryzom/client/src/interface_v3/lua_ihm_ryzom.h @@ -214,7 +214,7 @@ private: static sint getCharacterSheetRegionForce(const std::string &sheet); static sint getCharacterSheetRegionLevel(const std::string &sheet); 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 getMousePos(CLuaState &ls); static int getMouseDown(CLuaState &ls);