Skip to content

Commit

Permalink
Don't rename AI players.
Browse files Browse the repository at this point in the history
With multiple AI's, Nexus, Nexus, Nexus would be renamed to Nexus, Nexus_2, Nexus_3, or similar.
  • Loading branch information
Cyp committed Jul 22, 2012
1 parent 95677b0 commit ee95d78
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/netplay/netplay.cpp
Expand Up @@ -576,7 +576,7 @@ void NETfixDuplicatePlayerNames(void)
for (i = 1; i != MAX_PLAYERS; ++i)
{
sstrcpy(name, NetPlay.players[i].name);
if (name[0] == '\0')
if (name[0] == '\0' || !NetPlay.players[i].allocated)
{
continue; // Ignore empty names.
}
Expand Down

0 comments on commit ee95d78

Please sign in to comment.