diff options
author | _AG <gennariarmando@outlook.com> | 2019-06-22 21:59:10 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-06-22 21:59:10 +0200 |
commit | 0126bef9a18b3d7a3e568ae21c2a4850c42ca6c7 (patch) | |
tree | b223d1d5488cd073317fbe439f23ae8fee139ed6 | |
parent | Merge pull request #29 from erorcun/erorcun (diff) | |
download | re3-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.cpp | 6 |
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); }; }; } |