1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-09-16 09:26:28 +02:00

- some bugfixing

- removed redundant or unused code in GUI
This commit is contained in:
Ivan Savenko
2012-06-16 22:40:28 +00:00
parent 1b50082e43
commit 7a6133a824
5 changed files with 55 additions and 102 deletions

View File

@@ -425,12 +425,14 @@ void CPlayerInterface::heroManaPointsChanged(const CGHeroInstance * hero)
{
EVENT_HANDLER_CALLED_BY_CLIENT;
updateInfo(hero);
if(makingTurn && hero->tempOwner == playerID)
adventureInt->heroList.update(hero);
}
void CPlayerInterface::heroMovePointsChanged(const CGHeroInstance * hero)
{
EVENT_HANDLER_CALLED_BY_CLIENT;
if(makingTurn && hero->tempOwner == playerID)
adventureInt->heroList.redraw();
adventureInt->heroList.update(hero);
}
void CPlayerInterface::receivedResource(int type, int val)
{
@@ -2357,7 +2359,6 @@ void CPlayerInterface::playerStartsTurn(ui8 player)
if(!GH.listInt.size())
{
GH.pushInt(adventureInt);
adventureInt->activateKeys();
}
if(howManyPeople == 1)
{