mirror of
https://github.com/vcmi/vcmi.git
synced 2025-01-14 02:33:51 +02:00
Fix garrison highlight in city (#292)
This commit is contained in:
parent
88952aefff
commit
19a9f05b80
@ -897,6 +897,8 @@ CCastleInterface::CCastleInterface(const CGTownInstance * Town, const CGTownInst
|
|||||||
updateShadow();
|
updateShadow();
|
||||||
|
|
||||||
garr = new CGarrisonInt(305, 387, 4, Point(0,96), panel->bg, Point(62,374), town->getUpperArmy(), town->visitingHero);
|
garr = new CGarrisonInt(305, 387, 4, Point(0,96), panel->bg, Point(62,374), town->getUpperArmy(), town->visitingHero);
|
||||||
|
garr->type |= REDRAW_PARENT;
|
||||||
|
|
||||||
heroes = new HeroSlots(town, Point(241, 387), Point(241, 483), garr, true);
|
heroes = new HeroSlots(town, Point(241, 387), Point(241, 483), garr, true);
|
||||||
title = new CLabel(85, 387, FONT_MEDIUM, TOPLEFT, Colors::WHITE, town->name);
|
title = new CLabel(85, 387, FONT_MEDIUM, TOPLEFT, Colors::WHITE, town->name);
|
||||||
income = new CLabel(195, 443, FONT_SMALL, CENTER);
|
income = new CLabel(195, 443, FONT_SMALL, CENTER);
|
||||||
@ -980,7 +982,6 @@ void CCastleInterface::recreateIcons()
|
|||||||
OBJ_CONSTRUCTION_CAPTURING_ALL;
|
OBJ_CONSTRUCTION_CAPTURING_ALL;
|
||||||
delete fort;
|
delete fort;
|
||||||
delete hall;
|
delete hall;
|
||||||
|
|
||||||
size_t iconIndex = town->town->clientInfo.icons[town->hasFort()][town->builded >= CGI->modh->settings.MAX_BUILDING_PER_TURN];
|
size_t iconIndex = town->town->clientInfo.icons[town->hasFort()][town->builded >= CGI->modh->settings.MAX_BUILDING_PER_TURN];
|
||||||
|
|
||||||
icon->setFrame(iconIndex);
|
icon->setFrame(iconIndex);
|
||||||
|
Loading…
Reference in New Issue
Block a user