aboutsummaryrefslogtreecommitdiff
path: root/contrib/protoc-bnet/BnetCodeGenerator.cpp
diff options
context:
space:
mode:
authorjackpoz <giacomopoz@gmail.com>2020-12-27 18:24:53 +0100
committerShauren <shauren.trinity@gmail.com>2022-03-05 17:02:19 +0100
commitc14f4dc83502dea7dad8ad4f92270d8d36b01c12 (patch)
tree71a0e98be279fe5666541c8c9411dd63b41f8841 /contrib/protoc-bnet/BnetCodeGenerator.cpp
parent13bf0e71b94907cc72c3907f9cddc501a7bdb563 (diff)
Core/Maps: Use the same logic to calculate grid coords to avoid mismatches
Use the same logic of (CENTER_GRID_ID - x / SIZE_OF_GRIDS) in GridMap::getMinHeight() as Map::GetGrid() to avoid coord grid mismatches caused by floating point precision, i.e. getting the wrong grid. Replace defines with constexpr in grids to make debugging easier. Closes #25652 (cherry picked from commit 0c69316714d0558e32462f5401197fe1e803ae75)
Diffstat (limited to 'contrib/protoc-bnet/BnetCodeGenerator.cpp')
0 files changed, 0 insertions, 0 deletions