From 886522371299b45254b7dc72e6de3070703d7c10 Mon Sep 17 00:00:00 2001
From: Andrei Karas <akaras@inbox.ru>
Date: Thu, 19 May 2011 02:24:20 +0300
Subject: Enable server type selection again. Add evol server type. Now working
 same as tmweathena.

---
 src/net/messagein.cpp | 2 +-
 src/net/net.cpp       | 3 +++
 src/net/serverinfo.h  | 5 ++++-
 3 files changed, 8 insertions(+), 2 deletions(-)

(limited to 'src/net')

diff --git a/src/net/messagein.cpp b/src/net/messagein.cpp
index 12d086207..9b76c76fa 100644
--- a/src/net/messagein.cpp
+++ b/src/net/messagein.cpp
@@ -116,7 +116,7 @@ void MessageIn::readCoordinates(Uint16 &x, Uint16 &y, Uint8 &direction)
                 break;
             case 8:
 #ifdef MANASERV_SUPPORT
-                if (Net::getNetworkType() == ServerInfo::TMWATHENA)
+                if (Net::getNetworkType() != ServerInfo::MANASERV)
 #endif
                 {
                     direction = 8;
diff --git a/src/net/net.cpp b/src/net/net.cpp
index 052d65edc..ca26415a6 100644
--- a/src/net/net.cpp
+++ b/src/net/net.cpp
@@ -160,6 +160,9 @@ void connectToServer(const ServerInfo &server)
 
         switch (server.type)
         {
+            case ServerInfo::EVOL:
+                new TmwAthena::GeneralHandler;
+                break;
             case ServerInfo::MANASERV:
 #ifdef MANASERV_SUPPORT
                 new ManaServ::GeneralHandler;
diff --git a/src/net/serverinfo.h b/src/net/serverinfo.h
index 2e8d63a6e..eb07f766e 100644
--- a/src/net/serverinfo.h
+++ b/src/net/serverinfo.h
@@ -35,7 +35,8 @@ public:
     {
         UNKNOWN = 0,
         MANASERV,
-        TMWATHENA
+        TMWATHENA,
+        EVOL
     };
 
     typedef std::pair<int, std::string> VersionString;
@@ -103,6 +104,8 @@ public:
     {
         if (compareStrI(type, "tmwathena") == 0)
             return TMWATHENA;
+        if (compareStrI(type, "evol") == 0)
+            return EVOL;
         // Used for backward compatibility
         else if (compareStrI(type, "eathena") == 0)
             return TMWATHENA;
-- 
cgit v1.2.3-70-g09d2