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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user