First semi-working version of antilag for hero movement

This commit is contained in:
Ivan Savenko
2025-07-19 18:04:20 +03:00
parent 3ea2c8bff0
commit 241da5937d
33 changed files with 95 additions and 71 deletions
+1 -1
View File
@@ -167,7 +167,7 @@ void HeroMovementController::onTryMoveHero(const CGHeroInstance * hero, const Tr
GAME->interface()->localState->hasPath(hero) &&
GAME->interface()->localState->getPath(hero).lastNode().coord == details.attackedFrom;
std::unordered_set<int3> changedTiles {
FowTilesType changedTiles {
hero->convertToVisitablePos(details.start),
hero->convertToVisitablePos(details.end)
};