1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-29 23:07:48 +02:00

int3 now has proper hasher function

This commit is contained in:
Ivan Savenko
2023-04-16 01:48:49 +03:00
parent 4ec32e4dcd
commit 7db67a3101
24 changed files with 60 additions and 67 deletions

View File

@@ -157,7 +157,7 @@ void MapAudioPlayer::updateAmbientSounds()
};
int3 pos = currentSelection->getSightCenter();
std::unordered_set<int3, ShashInt3> tiles;
std::unordered_set<int3> tiles;
LOCPLINT->cb->getVisibleTilesInRange(tiles, pos, CCS->soundh->ambientGetRange(), int3::DIST_CHEBYSHEV);
for(int3 tile : tiles)
{