1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-03-31 22:05:10 +02:00
This commit is contained in:
Michael 2023-08-12 20:02:36 +02:00 committed by GitHub
parent 8bb7fd31cd
commit 3d08ecf024
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

@ -438,7 +438,7 @@ OptionsTab::SelectionWindow::SelectionWindow(PlayerColor _color)
allowedFactions = SEL->getPlayerInfo(color.getNum()).allowedFactions;
allowedHeroes = SEL->getMapInfo()->mapHeader->allowedHeroes;
redraw();
recreate();
center();
}
@ -678,7 +678,7 @@ void OptionsTab::SelectionWindow::clickReleased(const Point & cursorPosition) {
if(set.castle == -1)
apply();
else
redraw();
recreate();
}
else if(set.hero != -2)
{

@ -124,7 +124,7 @@ public:
void genContentBonus();
void apply();
void redraw();
void recreate();
void setSelection();
FactionID getElementCastle(const Point & cursorPosition);
HeroTypeID getElementHero(const Point & cursorPosition);