diff options
author | jackpoz <giacomopoz@gmail.com> | 2020-12-27 18:24:53 +0100 |
---|---|---|
committer | jackpoz <giacomopoz@gmail.com> | 2020-12-27 18:24:53 +0100 |
commit | 0c69316714d0558e32462f5401197fe1e803ae75 (patch) | |
tree | d025c6d59d338bebcf25af7bdfc46a017e63049e /src/common/DataStores/DBCFileLoader.cpp | |
parent | 9994459bd197d5555cfa16ab3d35d9c362a563fd (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
Diffstat (limited to 'src/common/DataStores/DBCFileLoader.cpp')
0 files changed, 0 insertions, 0 deletions