Explorar o código

Fix slot deselect when selected shortly after new day animation bypass

Dydzio %!s(int64=2) %!d(string=hai) anos
pai
achega
013d4cd208
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  1. 3 0
      client/adventureMap/CInfoBar.cpp

+ 3 - 0
client/adventureMap/CInfoBar.cpp

@@ -277,6 +277,9 @@ void CInfoBar::tick(uint32_t msPassed)
 
 void CInfoBar::clickReleased(const Point & cursorPosition)
 {
+	timerCounter = 0;
+	removeUsedEvents(TIME); //expiration trigger from just clicked element is not valid anymore
+
 	if(state == HERO || state == TOWN)
 	{
 		if(settings["gameTweaks"]["infoBoxCreatureManagement"].Bool())