summaryrefslogtreecommitdiff
path: root/src/net
diff options
context:
space:
mode:
authorYohann Ferreira <yohann_dot_ferreira_at_orange_dot_efer>2010-10-17 14:47:34 +0200
committerYohann Ferreira <yohann_dot_ferreira_at_orange_dot_efer>2010-10-17 14:47:34 +0200
commit564d845603964401533922f5c81c99c385817d4b (patch)
treeca7c79a058e9ea55f45adcb9bd57a270dcb0d316 /src/net
parentb5dc469d6a15403ca0fd8272dc39d83980bdbfba (diff)
downloadmana-564d845603964401533922f5c81c99c385817d4b.tar.gz
mana-564d845603964401533922f5c81c99c385817d4b.tar.bz2
mana-564d845603964401533922f5c81c99c385817d4b.tar.xz
mana-564d845603964401533922f5c81c99c385817d4b.zip
Removed unnecessary condition in net::readCoordinates.
It is used only by tmwa handlers. Trivial fix.
Diffstat (limited to 'src/net')
-rw-r--r--src/net/messagein.cpp8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/net/messagein.cpp b/src/net/messagein.cpp
index 5f1e96b7..3c3e9edf 100644
--- a/src/net/messagein.cpp
+++ b/src/net/messagein.cpp
@@ -20,7 +20,6 @@
*/
#include "net/messagein.h"
-#include "net/net.h"
#define MAKEWORD(low,high) \
((unsigned short)(((unsigned char)(low)) | \
@@ -99,11 +98,8 @@ void MessageIn::readCoordinates(Uint16 &x, Uint16 &y, Uint8 &direction)
direction = 9;
break;
case 8:
- if (Net::getNetworkType() == ServerInfo::TMWATHENA)
- {
- direction = 8;
- break;
- }
+ direction = 8;
+ break;
default:
// OOPSIE! Impossible or unknown
direction = 0;