Browse Source

Fix freezes while turn ends at hero move

nordsoft 2 năm trước cách đây
mục cha
commit
0c38187916
1 tập tin đã thay đổi với 3 bổ sung0 xóa
  1. 3 0
      client/CPlayerInterface.cpp

+ 3 - 0
client/CPlayerInterface.cpp

@@ -170,6 +170,9 @@ void CPlayerInterface::initGameInterface(std::shared_ptr<Environment> ENV, std::
 void CPlayerInterface::playerStartsTurn(PlayerColor player)
 {
 	EVENT_HANDLER_CALLED_BY_CLIENT;
+	
+	makingTurn = false;
+	stillMoveHero.setn(STOP_MOVE);
 
 	if(GH.windows().findWindows<AdventureMapInterface>().empty())
 	{