summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
author_AG <gennariarmando@outlook.com>2019-06-22 21:59:10 +0200
committerGitHub <noreply@github.com>2019-06-22 21:59:10 +0200
commit0126bef9a18b3d7a3e568ae21c2a4850c42ca6c7 (patch)
treeb223d1d5488cd073317fbe439f23ae8fee139ed6 /src
parentMerge pull request #29 from erorcun/erorcun (diff)
downloadre3-0126bef9a18b3d7a3e568ae21c2a4850c42ca6c7.tar
re3-0126bef9a18b3d7a3e568ae21c2a4850c42ca6c7.tar.gz
re3-0126bef9a18b3d7a3e568ae21c2a4850c42ca6c7.tar.bz2
re3-0126bef9a18b3d7a3e568ae21c2a4850c42ca6c7.tar.lz
re3-0126bef9a18b3d7a3e568ae21c2a4850c42ca6c7.tar.xz
re3-0126bef9a18b3d7a3e568ae21c2a4850c42ca6c7.tar.zst
re3-0126bef9a18b3d7a3e568ae21c2a4850c42ca6c7.zip
Diffstat (limited to '')
-rw-r--r--src/Radar.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Radar.cpp b/src/Radar.cpp
index e9fce51e..dd94341a 100644
--- a/src/Radar.cpp
+++ b/src/Radar.cpp
@@ -216,10 +216,10 @@ void CRadar::StreamRadarSections(int x, int y)
{
for (int i = 0; i < 8; ++i) {
for (int j = 0; j < 8; ++j) {
- if (i >= x - 1 && i <= x + 1 && j >= y - 1 && j <= y + 1)
- RequestMapSection(x, y);
+ if ((i >= x - 1 && i <= x + 1) && (j >= y - 1 && j <= y + 1))
+ RequestMapSection(i, j);
else
- RemoveMapSection(x, y);
+ RemoveMapSection(i, j);
};
};
}