From 0126bef9a18b3d7a3e568ae21c2a4850c42ca6c7 Mon Sep 17 00:00:00 2001 From: _AG Date: Sat, 22 Jun 2019 21:59:10 +0200 Subject: Fixed little bug in Radar.cpp. --- src/Radar.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src') 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); }; }; } -- cgit v1.2.3