Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/netclient.cc')
-rw-r--r--src/core/netclient.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/core/netclient.cc b/src/core/netclient.cc
index 2df024b..e2a9b7e 100644
--- a/src/core/netclient.cc
+++ b/src/core/netclient.cc
@@ -1,5 +1,5 @@
/*
- net/netclient.h
+ net/netclient.cc
This file is part of the Osirion project and is distributed under
the terms of the GNU General Public License version 2
*/
@@ -19,7 +19,8 @@ NetClient::NetClient(int clientfd, std::string host, int port) :
client_host(host)
{
std::ostringstream osstream;
- osstream << host << ":" << port;
+ //osstream << "host << ":" << port;
+ osstream << "Player" << clientfd;
client_player.name = osstream.str();
client_player.id = (unsigned int) clientfd;