浏览代码

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

Adriankhl 2 年之前
父节点
当前提交
368def1609
共有 1 个文件被更改,包括 3 次插入0 次删除
  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()