1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-06-15 00:05:02 +02:00

Remove excessive totalRedraw's

This commit is contained in:
Ivan Savenko
2023-03-22 00:57:08 +02:00
parent a78f7de9cd
commit c81d57ab8c
4 changed files with 5 additions and 6 deletions

View File

@ -583,6 +583,7 @@ void CPlayerInterface::heroInGarrisonChange(const CGTownInstance *town)
castleInt->garr->setArmy(town->visitingHero, 1);
castleInt->garr->recreateSlots();
castleInt->heroes->update();
castleInt->redraw();
}
for (auto isa : GH.listInt)
{
@ -591,9 +592,9 @@ void CPlayerInterface::heroInGarrisonChange(const CGTownInstance *town)
{
ki->townChanged(town);
ki->updateGarrisons();
ki->redraw();
}
}
GH.totalRedraw();
}
void CPlayerInterface::heroVisitsTown(const CGHeroInstance* hero, const CGTownInstance * town)
{