Fixed: Invalid duplicate landmark check.
--HG-- branch : develop
This commit is contained in:
parent
926f545e0f
commit
7ed7491f04
1 changed files with 2 additions and 2 deletions
|
@ -628,8 +628,8 @@ void CContinentManager::readFrom(xmlNodePtr node)
|
||||||
for(uint i = 0; i< itContinent->second->UserLandMarks.size(); ++i)
|
for(uint i = 0; i< itContinent->second->UserLandMarks.size(); ++i)
|
||||||
{
|
{
|
||||||
const CUserLandMark& test = itContinent->second->UserLandMarks[i];
|
const CUserLandMark& test = itContinent->second->UserLandMarks[i];
|
||||||
uint xdiff = abs(test.Pos.x - lm.Pos.x) * 100;
|
uint xdiff = fabs(test.Pos.x - lm.Pos.x) * 100.f;
|
||||||
uint ydiff = abs(test.Pos.y - lm.Pos.y) * 100;
|
uint ydiff = fabs(test.Pos.y - lm.Pos.y) * 100.f;
|
||||||
if (xdiff == 0 && ydiff == 0)
|
if (xdiff == 0 && ydiff == 0)
|
||||||
{
|
{
|
||||||
add = false;
|
add = false;
|
||||||
|
|
Loading…
Reference in a new issue