mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-27 22:49:25 +02:00
First semi-working version of antilag for hero movement
This commit is contained in:
@@ -163,7 +163,7 @@ void MapAudioPlayer::updateAmbientSounds()
|
||||
};
|
||||
|
||||
int3 pos = currentSelection->getSightCenter();
|
||||
std::unordered_set<int3> tiles;
|
||||
FowTilesType tiles;
|
||||
GAME->interface()->cb->getVisibleTilesInRange(tiles, pos, ENGINE->sound().ambientGetRange(), int3::DIST_CHEBYSHEV);
|
||||
for(int3 tile : tiles)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user