From d0118876bf7033e8c37f466773890b804f12a44d Mon Sep 17 00:00:00 2001
From: johns <>
Date: Tue, 29 Aug 2000 15:42:42 +0000
Subject: [PATCH] ThisPlayer didn't setup in CreatePlayer for
 multiplayer/network play.

---
 src/stratagus/player.cpp | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/src/stratagus/player.cpp b/src/stratagus/player.cpp
index db3f88866..fcf9dcea4 100644
--- a/src/stratagus/player.cpp
+++ b/src/stratagus/player.cpp
@@ -103,6 +103,7 @@ global void CreatePlayer(char* name,int type)
     //	Take first slot for human on this computer,
     //	fill other with computer players.
     //
+#if 0
     if( type==PlayerHuman ) {
 	if( !ThisPlayer ) {
 	    ThisPlayer=player;
@@ -111,6 +112,15 @@ global void CreatePlayer(char* name,int type)
 	    type=PlayerComputer;
 	}
     }
+#else
+    if( type==PlayerHuman && !NetPlayers && !NetworkArg ) {
+	if( !ThisPlayer ) {
+	    ThisPlayer=player;
+	} else {
+	    type=PlayerComputer;
+	}
+    }
+#endif
 
     //
     //	Make simple teams: