mirror of
https://github.com/vcmi/vcmi.git
synced 2025-02-13 13:18:43 +02:00
Workaround-ish fix for last scenario of Angel Wings (un)equipping
This commit is contained in:
parent
03c3797945
commit
6546242c03
@ -125,6 +125,12 @@ void AdventureMapInterface::activate()
|
|||||||
}
|
}
|
||||||
|
|
||||||
GH.fakeMouseMove(); //to restore the cursor
|
GH.fakeMouseMove(); //to restore the cursor
|
||||||
|
|
||||||
|
// workaround for an edge case:
|
||||||
|
// if player unequips Angel Wings / Boots of Levitation of currently active hero
|
||||||
|
// game will correctly invalidate paths but current route will not be updated since verifyPath() is not called for current hero
|
||||||
|
if (LOCPLINT->makingTurn && LOCPLINT->localState->getCurrentHero())
|
||||||
|
LOCPLINT->localState->verifyPath(LOCPLINT->localState->getCurrentHero());
|
||||||
}
|
}
|
||||||
|
|
||||||
void AdventureMapInterface::deactivate()
|
void AdventureMapInterface::deactivate()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user