Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/Graphwar/GameData.java
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ public void connect(String ip, int port) throws IOException
currentTurn = -1;
turnTimeUp = false;
nextTurnSent = false;
nextPCs.clear();

new Thread(this).start();

Expand Down Expand Up @@ -151,7 +152,7 @@ public Player getFirstLocalPlayer()
{
Player player = itr.next();

if(player.isLocalPlayer())
if(player.isLocalPlayer() && !(player instanceof ComputerPlayer))
{
return player;
}
Expand Down