ThisPlayer didn't setup in CreatePlayer for multiplayer/network play.

This commit is contained in:
johns 2000-08-29 15:42:42 +00:00
parent 63e7549c69
commit d0118876bf

View file

@ -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: