From 959d08ba94fa5bf0db59d24f5525b8df7ec69583 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20T=C5=AFma?= Date: Fri, 22 Apr 2022 22:26:47 +0200 Subject: [PATCH] Removed broken coordinates adjustment --- src/map/IMG/netfile.cpp | 2 -- src/map/IMG/rgnfile.cpp | 2 -- 2 files changed, 4 deletions(-) diff --git a/src/map/IMG/netfile.cpp b/src/map/IMG/netfile.cpp index 757e95a5..ad2cea04 100644 --- a/src/map/IMG/netfile.cpp +++ b/src/map/IMG/netfile.cpp @@ -156,8 +156,6 @@ bool NETFile::readLine(BitStream4R &bs, const SubDiv *subdiv, break; pos.rx() += LS(lonDelta, 32-subdiv->bits()); - if (pos.rx() < 0 && subdiv->lon() >= 0) - pos.rx() = 0x7fffffff; pos.ry() += LS(latDelta, 32-subdiv->bits()); Coordinates c(toWGS32(pos.x()), toWGS32(pos.y())); diff --git a/src/map/IMG/rgnfile.cpp b/src/map/IMG/rgnfile.cpp index f7087cff..9222e2dc 100644 --- a/src/map/IMG/rgnfile.cpp +++ b/src/map/IMG/rgnfile.cpp @@ -391,8 +391,6 @@ bool RGNFile::extPolyObjects(Handle &hdl, const SubDiv *subdiv, quint32 shift, break; pos.rx() += LS(lonDelta, 32-subdiv->bits()-shift); - if (pos.rx() < 0 && subdiv->lon() >= 0) - pos.rx() = 0x7fffffff; pos.ry() += LS(latDelta, 32-subdiv->bits()-shift); Coordinates c(toWGS32(pos.x()), toWGS32(pos.y()));