summaryrefslogtreecommitdiff
path: root/src/client.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-11-16 18:02:08 +0300
committerAndrei Karas <akaras@inbox.ru>2014-11-16 18:02:08 +0300
commitcef3523b7692bd08fa90e98cd6f87184a15960c9 (patch)
treec1cd5b0027bd099bcfe1b9d40b7cf191c8fb5879 /src/client.cpp
parent8df6afa68f9192321f98942348cbcb757ef7bbdc (diff)
downloadmanaverse-cef3523b7692bd08fa90e98cd6f87184a15960c9.tar.gz
manaverse-cef3523b7692bd08fa90e98cd6f87184a15960c9.tar.bz2
manaverse-cef3523b7692bd08fa90e98cd6f87184a15960c9.tar.xz
manaverse-cef3523b7692bd08fa90e98cd6f87184a15960c9.zip
Add new command option --server-type.
It can accept values: eathena, evol, evol2, tmwathena
Diffstat (limited to 'src/client.cpp')
-rw-r--r--src/client.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/client.cpp b/src/client.cpp
index 8a6f885c7..f0919ed9a 100644
--- a/src/client.cpp
+++ b/src/client.cpp
@@ -404,6 +404,11 @@ void Client::gameInit()
// Initialize default server
mCurrentServer.hostname = settings.options.serverName;
mCurrentServer.port = settings.options.serverPort;
+ if (!settings.options.serverType.empty())
+ {
+ mCurrentServer.type = ServerInfo::parseType(
+ settings.options.serverType);
+ }
loginData.username = settings.options.username;
loginData.password = settings.options.password;