Ver Fonte

Fix freezes while turn ends at hero move

nordsoft há 2 anos atrás
pai
commit
0c38187916
1 ficheiros alterados com 3 adições e 0 exclusões
  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())
 	{