From e899e18fa2bca908251f7f87561561a822c7fe7d Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 6 Nov 2014 19:38:52 +0300 Subject: Add server feature "have map server version". --- src/net/eathena/serverfeatures.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/net/eathena/serverfeatures.cpp') diff --git a/src/net/eathena/serverfeatures.cpp b/src/net/eathena/serverfeatures.cpp index e15ea2133..943c6314e 100644 --- a/src/net/eathena/serverfeatures.cpp +++ b/src/net/eathena/serverfeatures.cpp @@ -24,6 +24,7 @@ #include "debug.h" +extern int serverVersion; extern Net::ServerFeatures *serverFeatures; namespace EAthena @@ -159,4 +160,9 @@ bool ServerFeatures::haveServerVersion() const return Net::getNetworkType() == ServerInfo::EVOL2; } +bool ServerFeatures::haveMapServerVersion() const +{ + return serverVersion > 0; +} + } // namespace EAthena -- cgit v1.2.3-70-g09d2