Small correction for new network code
This commit is contained in:
parent
f281e294fd
commit
d4328e3b00
1 changed files with 2 additions and 1 deletions
|
@ -33,6 +33,7 @@
|
|||
#include "player.h"
|
||||
#include "unit.h"
|
||||
#include "ai.h"
|
||||
#include "network.h"
|
||||
|
||||
/*----------------------------------------------------------------------------
|
||||
-- Variables
|
||||
|
@ -104,7 +105,7 @@ global void CreatePlayer(char* name,int type)
|
|||
if( type==PlayerHuman ) {
|
||||
if( !ThisPlayer ) {
|
||||
ThisPlayer=player;
|
||||
} else if( !NetPlayers ) {
|
||||
} else if( !NetPlayers && !NetworkArg ) {
|
||||
// FIXME: only for single players
|
||||
type=PlayerComputer;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue