1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-29 23:07:48 +02:00

- partial implementation of scholar skill (spell exchange works, but no message)

- some fixes
This commit is contained in:
Ivan Savenko
2010-02-06 13:27:58 +00:00
parent 137ab65a13
commit fa735b6a67
10 changed files with 107 additions and 47 deletions

View File

@@ -3,6 +3,7 @@
#include "CBattleInterface.h"
#include "../CCallback.h"
#include "CCastleInterface.h"
#include "CKingdomInterface.h"
#include "CCursorHandler.h"
#include "CGameInfo.h"
#include "CHeroWindow.h"
@@ -484,6 +485,12 @@ void CPlayerInterface::garrisonChanged(const CGObjectInstance * obj)
wwg->garr->recreateSlots();
wasGarrison = true;
}
else
{//a cheat for Kingdom Overview window (it has CWindowWithGarrison-childrens which are not present in ListInt)
CKingdomInterface *cki = dynamic_cast<CKingdomInterface*>(*i);//need to create "Garrison Holder" class thingy
if (cki)
cki->updateAllGarrisons();
}
}
GH.totalRedraw();