2
0
Michael 2 жил өмнө
parent
commit
3d08ecf024

+ 2 - 2
client/lobby/OptionsTab.cpp

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

+ 1 - 1
client/lobby/OptionsTab.h

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