瀏覽代碼

more error fixes

Axel Nordh 6 年之前
父節點
當前提交
6b18016891
共有 3 個文件被更改,包括 2 次插入2 次删除
  1. 1 1
      Assets/Scripts/GameInfoScript.cs
  2. 二進制
      Assets/narKampenLocal.db
  3. 1 1
      dbFiles/OnlineGames.php

+ 1 - 1
Assets/Scripts/GameInfoScript.cs

@@ -39,7 +39,7 @@ public class GameInfoScript : MonoBehaviour {
             OnlinePlayerInfoScript opi = slp.GetComponent<OnlinePlayerInfoScript>();
             OnlinePlayerInfoScript opi = slp.GetComponent<OnlinePlayerInfoScript>();
             opi.GameId = gameId;
             opi.GameId = gameId;
             opi.SetPlayerName(player.Key);
             opi.SetPlayerName(player.Key);
-            if (currentPlayer.Equals(player.Key) && player.Value.Equals("WAITING")) {
+            if (currentPlayer.Equals(player.Key, StringComparison.InvariantCultureIgnoreCase) && player.Value.Equals("WAITING")) {
                 opi.ShowDecitionButtons();
                 opi.ShowDecitionButtons();
             } else {
             } else {
                 opi.SetPlayerStatus(player.Value);
                 opi.SetPlayerStatus(player.Value);

二進制
Assets/narKampenLocal.db


+ 1 - 1
dbFiles/OnlineGames.php

@@ -64,8 +64,8 @@
 			$playerIds = array();
 			$playerIds = array();
 			while ($data = $result->fetch_assoc()) {
 			while ($data = $result->fetch_assoc()) {
 				if ($data['status'] != "ACCEPTED") {
 				if ($data['status'] != "ACCEPTED") {
-					echo $data['status'];
 					$done = false;
 					$done = false;
+				} else {
 					$playerIds[] = $data['playerId'];
 					$playerIds[] = $data['playerId'];
 				}
 				}
 			}
 			}