Fixed little bug in Radar.cpp.

This commit is contained in:
_AG 2019-06-22 21:59:10 +02:00 committed by GitHub
parent 6c7df4487e
commit 0126bef9a1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -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);
};
};
}