diff options
author | David Athay <ko2fan@gmail.com> | 2007-06-26 19:50:02 +0000 |
---|---|---|
committer | David Athay <ko2fan@gmail.com> | 2007-06-26 19:50:02 +0000 |
commit | 301ffe1048fb23548f72759b6ed0ca98e9109ff4 (patch) | |
tree | c765b6df9a83227b1d40bb59949b768fbc4c1574 /src/net | |
parent | 99263173738dfd6ca4ba822e0a112f1c7c17661c (diff) | |
download | manaserv-301ffe1048fb23548f72759b6ed0ca98e9109ff4.tar.gz manaserv-301ffe1048fb23548f72759b6ed0ca98e9109ff4.tar.bz2 manaserv-301ffe1048fb23548f72759b6ed0ca98e9109ff4.tar.xz manaserv-301ffe1048fb23548f72759b6ed0ca98e9109ff4.zip |
Merged guilds-and-parties branch to trunk
Diffstat (limited to 'src/net')
-rw-r--r-- | src/net/netcomputer.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/net/netcomputer.cpp b/src/net/netcomputer.cpp index 47d7ea1a..345b408d 100644 --- a/src/net/netcomputer.cpp +++ b/src/net/netcomputer.cpp @@ -92,10 +92,11 @@ operator <<(std::ostream &os, const NetComputer &comp) << ((comp.mPeer->address.host & 0xff000000) >> 24); else // big-endian - os << ((comp.mPeer->address.host & 0xff000000) >> 24) << "." - << ((comp.mPeer->address.host & 0x00ff0000) >> 16) << "." - << ((comp.mPeer->address.host & 0x0000ff00) >> 8) << "." - << ((comp.mPeer->address.host & 0x000000ff) >> 0); + // TODO: test this + os << ((comp.mPeer->address.host & 0xff000000) >> 24) << "." + << ((comp.mPeer->address.host & 0x00ff0000) >> 16) << "." + << ((comp.mPeer->address.host & 0x0000ff00) >> 8) << "." + << ((comp.mPeer->address.host & 0x000000ff)); return os; } |