1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-06-17 00:07:41 +02:00

* half-working boots of levitation and angel's wings

This commit is contained in:
mateuszb
2010-05-15 15:00:19 +00:00
parent 70fa697f8b
commit edd31ef41b
8 changed files with 102 additions and 22 deletions

View File

@ -969,6 +969,11 @@ void CPlayerInterface::heroBonusChanged( const CGHeroInstance *hero, const Bonus
if(bonus.type == Bonus::NONE) return;
boost::unique_lock<boost::recursive_mutex> un(*pim);
updateInfo(hero);
if (bonus.type == Bonus::FLYING_MOVEMENT || bonus.type == Bonus::WATER_WALKING && !gain)
{
//recalculate paths because hero has lost bonus influencing pathfinding
cb->recalculatePaths();
}
}
template <typename Handler> void CPlayerInterface::serializeTempl( Handler &h, const int version )