Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files
Fixed little bug in Radar.cpp.
  • Loading branch information
gennariarmando committed Jun 22, 2019
1 parent 6c7df44 commit 0126bef9a18b3d7a3e568ae21c2a4850c42ca6c7
Showing with 3 additions and 3 deletions.
  1. +3 −3 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);
};
};
}

0 comments on commit 0126bef

Please sign in to comment.