Skip to content

Commit

Permalink
fix desync
Browse files Browse the repository at this point in the history
  • Loading branch information
jK committed Jul 4, 2015
1 parent f4d0d97 commit 1ab5dbe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rts/Sim/Misc/LosMap.h
Expand Up @@ -29,8 +29,8 @@ class CLosMap
int operator[] (int square) const { return map[square]; }

int At(int x, int y) const {
x = Clamp(size.x - 1, 0, x);
y = Clamp(size.y - 1, 0, y);
x = Clamp(x, 0, size.x - 1);
y = Clamp(y, 0, size.y - 1);
return map[y * size.x + x];
}

Expand Down

0 comments on commit 1ab5dbe

Please sign in to comment.