diff options
author | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2005-12-30 16:50:12 +0000 |
---|---|---|
committer | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2005-12-30 16:50:12 +0000 |
commit | 83f7d9ff9f83cca80b5f72564ee3496e8a30cce3 (patch) | |
tree | 95ba60d15ca46c9c5bb1696fbb45dc900070521a /src/net/network.cpp | |
parent | ea653b2e9e1b46a07440833f96b3d2b788592c61 (diff) | |
download | mana-83f7d9ff9f83cca80b5f72564ee3496e8a30cce3.tar.gz mana-83f7d9ff9f83cca80b5f72564ee3496e8a30cce3.tar.bz2 mana-83f7d9ff9f83cca80b5f72564ee3496e8a30cce3.tar.xz mana-83f7d9ff9f83cca80b5f72564ee3496e8a30cce3.zip |
Applied pcloud's patch that enhances chat window functionality while hidden.
Diffstat (limited to 'src/net/network.cpp')
-rw-r--r-- | src/net/network.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/net/network.cpp b/src/net/network.cpp index 4504a944..fbcf199b 100644 --- a/src/net/network.cpp +++ b/src/net/network.cpp @@ -143,7 +143,7 @@ int connectionThread(void *ptr) memset(out, '\0', buffer_size); in_size = 0; out_size = 0; - + SDL_mutexP(mMutex); logger->log("Network::Started session with %s:%i", iptostring(((IPaddress *)ptr)->host), @@ -343,13 +343,13 @@ bool packetReady() if (in_size >= 4) { length = readWord(2); - if (in_size >= length) + if (in_size >= (unsigned int)length) { ret = true; } } } - else if (in_size >= length) + else if (in_size >= (unsigned int)length) { ret = true; } |