summaryrefslogtreecommitdiff
path: root/src/login
diff options
context:
space:
mode:
authormekolat <mekolat@users.noreply.github.com>2015-05-19 21:09:48 -0400
committermekolat <mekolat@users.noreply.github.com>2015-05-19 21:09:48 -0400
commitf8fb37a14476e0d8fd7cc2c87fe9813ae9dc30b5 (patch)
treef8c5ae4fe8c2054c1bb51cffc253805f1c8a9981 /src/login
parentc6c3671dbe28c596ef06b4670979c5923c8821b6 (diff)
downloadtmwa-f8fb37a14476e0d8fd7cc2c87fe9813ae9dc30b5.tar.gz
tmwa-f8fb37a14476e0d8fd7cc2c87fe9813ae9dc30b5.tar.bz2
tmwa-f8fb37a14476e0d8fd7cc2c87fe9813ae9dc30b5.tar.xz
tmwa-f8fb37a14476e0d8fd7cc2c87fe9813ae9dc30b5.zip
handle old client in login server too
Diffstat (limited to 'src/login')
-rw-r--r--src/login/login.cpp4
-rw-r--r--src/login/login.hpp2
2 files changed, 1 insertions, 5 deletions
diff --git a/src/login/login.cpp b/src/login/login.cpp
index 886c510..9310ad3 100644
--- a/src/login/login.cpp
+++ b/src/login/login.cpp
@@ -2494,9 +2494,7 @@ void parse_login(Session *s)
result = mmo_auth(&account, s);
if (result == -1)
{
- VERSION_2 version_2 = fixed.version_2_flags;
- if (!bool(version_2 & VERSION_2::UPDATEHOST)
- || !bool(version_2 & VERSION_2::SERVERORDER))
+ if (fixed.version < MIN_CLIENT_VERSION)
result = 5; // client too old
}
if (result == -1)
diff --git a/src/login/login.hpp b/src/login/login.hpp
index ae99558..ba42bae 100644
--- a/src/login/login.hpp
+++ b/src/login/login.hpp
@@ -18,8 +18,6 @@
// You should have received a copy of the GNU General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>.
-#include "login.t.hpp"
-
#include "fwd.hpp"
#include "../strings/vstring.hpp"