diff options
author | Spp <spp@jorge.gr> | 2012-11-09 13:13:45 +0100 |
---|---|---|
committer | Spp <spp@jorge.gr> | 2012-11-09 13:13:45 +0100 |
commit | 333b8e5159ada2f1b8cbfd1dd8eb9072754477d7 (patch) | |
tree | b73ed1ddf75c9cb691178f0fc409a5e86d3797ce /src/server/collision/RegularGrid.h | |
parent | 90c95806a7bd54c8011e08ed74ff00198d206278 (diff) |
Core/Build: Enable Clang PCH support and OS X specific features
Core: Fix warnings here and there
Diffstat (limited to 'src/server/collision/RegularGrid.h')
-rw-r--r-- | src/server/collision/RegularGrid.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server/collision/RegularGrid.h b/src/server/collision/RegularGrid.h index 00d7b0cd209..5b7d1d74987 100644 --- a/src/server/collision/RegularGrid.h +++ b/src/server/collision/RegularGrid.h @@ -86,7 +86,7 @@ public: static Cell ComputeCell(float fx, float fy) { - Cell c = {fx * (1.f/CELL_SIZE) + (CELL_NUMBER/2), fy * (1.f/CELL_SIZE) + (CELL_NUMBER/2)}; + Cell c = { int(fx * (1.f/CELL_SIZE) + (CELL_NUMBER/2)), int(fy * (1.f/CELL_SIZE) + (CELL_NUMBER/2)) }; return c; } |