Quellcode durchsuchen

quick army managment click next

Laserlicht vor 2 Jahren
Ursprung
Commit
890c4ac19d
2 geänderte Dateien mit 1 neuen und 5 gelöschten Zeilen
  1. 0 5
      client/adventureMap/CInfoBar.cpp
  2. 1 0
      client/gui/EventDispatcher.cpp

+ 0 - 5
client/adventureMap/CInfoBar.cpp

@@ -295,12 +295,7 @@ void CInfoBar::clickReleased(const Point & cursorPosition)
 	removeUsedEvents(TIME); //expiration trigger from just clicked element is not valid anymore
 	removeUsedEvents(TIME); //expiration trigger from just clicked element is not valid anymore
 
 
 	if(state == HERO || state == TOWN)
 	if(state == HERO || state == TOWN)
-	{
-		if(settings["gameTweaks"]["infoBarCreatureManagement"].Bool())
-			return;
-
 		showGameStatus();
 		showGameStatus();
-	}
 	else if(state == GAME)
 	else if(state == GAME)
 		showDate();
 		showDate();
 	else
 	else

+ 1 - 0
client/gui/EventDispatcher.cpp

@@ -218,6 +218,7 @@ void EventDispatcher::handleLeftButtonClick(const Point & position, int toleranc
 				i->clickReleased(position);
 				i->clickReleased(position);
 
 
 			i->mouseClickedState = isPressed;
 			i->mouseClickedState = isPressed;
+			return;
 		}
 		}
 		else
 		else
 		{
 		{