Răsfoiți Sursa

Fix slot deselect when selected shortly after new day animation bypass

Dydzio 2 ani în urmă
părinte
comite
013d4cd208
1 a modificat fișierele cu 3 adăugiri și 0 ștergeri
  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())