瀏覽代碼

Always show dialog when player starts turn in multiplayer

Ivan Savenko 1 年之前
父節點
當前提交
b54eede01c
共有 1 個文件被更改,包括 6 次插入1 次删除
  1. 6 1
      client/CPlayerInterface.cpp

+ 6 - 1
client/CPlayerInterface.cpp

@@ -289,7 +289,12 @@ void CPlayerInterface::yourTurn(QueryID queryID)
 			performAutosave();
 		}
 
-		if (CSH->howManyPlayerInterfaces() > 1) //hot seat message
+		int humanPlayersCount = 0;
+		for(const auto & info : cb->getStartInfo()->playerInfos)
+			if (info.second.isControlledByHuman())
+				humanPlayersCount++;
+
+		if (humanPlayersCount > 1) //hot seat or MP message
 		{
 			adventureInt->onHotseatWaitStarted(playerID);