diff options
author | Stijn Buys <ingar@osirion.org> | 2008-02-18 20:08:37 +0000 |
---|---|---|
committer | Stijn Buys <ingar@osirion.org> | 2008-02-18 20:08:37 +0000 |
commit | 7daaf66869b7b9f85f71b1aa5e9a1b4c40710f33 (patch) | |
tree | 47535bcb196485d61064c2e875b760df11e22b8f /src/core/netconnection.cc | |
parent | e217a3fd8e5af449e2305aaf78723ff25b8fcbc2 (diff) |
removed second localplayer
Diffstat (limited to 'src/core/netconnection.cc')
-rw-r--r-- | src/core/netconnection.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/core/netconnection.cc b/src/core/netconnection.cc index 60b4ff8..63c906a 100644 --- a/src/core/netconnection.cc +++ b/src/core/netconnection.cc @@ -8,6 +8,7 @@ #include "sys/sys.h" #include "net/net.h" +#include "core/application.h" #include "core/netconnection.h" #include "core/player.h" @@ -31,7 +32,7 @@ void NetConnection::connect(std::string const &to_host, int to_port) } std::ostringstream osstream; - osstream << "name " << Player::local.name() << std::endl; + osstream << "name " << game()->localplayer()->name() << std::endl; send(osstream.str()); } |