From 7ed7491f04e22b082ae71a0f5c1851875cf5ddc1 Mon Sep 17 00:00:00 2001 From: Nimetu Date: Tue, 14 May 2019 20:54:38 +0300 Subject: [PATCH] Fixed: Invalid duplicate landmark check. --HG-- branch : develop --- code/ryzom/client/src/continent_manager.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/code/ryzom/client/src/continent_manager.cpp b/code/ryzom/client/src/continent_manager.cpp index c4b5cc693..cb8e11dbd 100644 --- a/code/ryzom/client/src/continent_manager.cpp +++ b/code/ryzom/client/src/continent_manager.cpp @@ -628,8 +628,8 @@ void CContinentManager::readFrom(xmlNodePtr node) for(uint i = 0; i< itContinent->second->UserLandMarks.size(); ++i) { const CUserLandMark& test = itContinent->second->UserLandMarks[i]; - uint xdiff = abs(test.Pos.x - lm.Pos.x) * 100; - uint ydiff = abs(test.Pos.y - lm.Pos.y) * 100; + uint xdiff = fabs(test.Pos.x - lm.Pos.x) * 100.f; + uint ydiff = fabs(test.Pos.y - lm.Pos.y) * 100.f; if (xdiff == 0 && ydiff == 0) { add = false;