From 564d845603964401533922f5c81c99c385817d4b Mon Sep 17 00:00:00 2001 From: Yohann Ferreira Date: Sun, 17 Oct 2010 14:47:34 +0200 Subject: Removed unnecessary condition in net::readCoordinates. It is used only by tmwa handlers. Trivial fix. --- src/net/messagein.cpp | 8 ++------ 1 file 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; -- cgit v1.2.3-60-g2f50