Browse Source

Fix sleep/wake button, now the icon is updated properly after left click

Adriankhl 2 years ago
parent
commit
368def1609
1 changed files with 3 additions and 0 deletions
  1. 3 0
      client/adventureMap/CAdvMapInt.cpp

+ 3 - 0
client/adventureMap/CAdvMapInt.cpp

@@ -331,6 +331,9 @@ void CAdvMapInt::fsleepWake()
 		//uncomment to enable original HoMM3 behaviour:
 		//move button is disabled for hero going to sleep, even though it's enabled when you reselect him
 	}
+
+	// redraw to update the image of sleep/wake button
+	panelMain->redraw();
 }
 
 void CAdvMapInt::fmoveHero()