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

Give hero move points at day of visiting stable, fixes #2598

This commit is contained in:
Piotr Wójcik
2017-05-11 20:52:10 +02:00
parent 48702a26a4
commit e3992de50e
3 changed files with 19 additions and 3 deletions

View File

@ -206,7 +206,15 @@ DLL_LINKAGE void SetMana::applyGs(CGameState *gs)
DLL_LINKAGE void SetMovePoints::applyGs(CGameState *gs)
{
CGHeroInstance *hero = gs->getHero(hid);
hero->movement = val;
assert(hero);
if(absolute)
hero->movement = val;
else
hero->movement += val;
vstd::amax(hero->movement, 0); //not less than 0
}
DLL_LINKAGE void FoWChange::applyGs(CGameState *gs)