diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-09-14 16:51:36 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-09-14 16:51:36 +0300 |
commit | da98d12637db106b87341560cc72ca6207b2d12f (patch) | |
tree | c79f1c3389f38ec878fc2dfc4729839242e2e81c /src/net/net.cpp | |
parent | 8a616021cbefff5f62b0ca55cf535130c8c1b5f0 (diff) | |
download | mv-da98d12637db106b87341560cc72ca6207b2d12f.tar.gz mv-da98d12637db106b87341560cc72ca6207b2d12f.tar.bz2 mv-da98d12637db106b87341560cc72ca6207b2d12f.tar.xz mv-da98d12637db106b87341560cc72ca6207b2d12f.zip |
Add configure and cmake option to enable/disable compilation for tmwa/evol.
Tmwa/evol by default enabled.
Diffstat (limited to 'src/net/net.cpp')
-rw-r--r-- | src/net/net.cpp | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/net/net.cpp b/src/net/net.cpp index 1ca5ac5c0..aee279a58 100644 --- a/src/net/net.cpp +++ b/src/net/net.cpp @@ -26,7 +26,9 @@ #include "net/loginhandler.h" +#ifdef TMWA_SUPPORT #include "net/tmwa/generalhandler.h" +#endif #ifdef EATHENA_SUPPORT #include "net/eathena/generalhandler.h" @@ -161,9 +163,6 @@ void connectToServer(const ServerInfo &server) switch (server.type) { - case ServerInfo::EVOL: - new TmwAthena::GeneralHandler; - break; case ServerInfo::EATHENA: #ifdef EATHENA_SUPPORT new EAthena::GeneralHandler; @@ -172,9 +171,14 @@ void connectToServer(const ServerInfo &server) #endif break; case ServerInfo::TMWATHENA: + case ServerInfo::EVOL: case ServerInfo::UNKNOWN: default: +#ifdef TMWA_SUPPORT new TmwAthena::GeneralHandler; +#else + new EAthena::GeneralHandler; +#endif break; } |