Merge pull request #97 from alketii/develop

Make sure that the _nnn suffix is always 3 digits
This commit is contained in:
MathuSum Mut 2018-03-21 19:06:16 +01:00 committed by GitHub
commit 50de66d6da
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -309,7 +309,7 @@ namespace Glest
Chrono seed (true);
srand ((unsigned int) seed.getCurTicks ());
int randomNickId = rand () % 999;
int randomNickId = (rand () % 899) + 100;
string netPlayerName =
Config::getInstance ().getString ("NetPlayerName",
Socket::getHostName ().c_str ());