diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-11-16 18:02:08 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-11-16 18:02:08 +0300 |
commit | cef3523b7692bd08fa90e98cd6f87184a15960c9 (patch) | |
tree | c1cd5b0027bd099bcfe1b9d40b7cf191c8fb5879 /src/client.cpp | |
parent | 8df6afa68f9192321f98942348cbcb757ef7bbdc (diff) | |
download | manaplus-cef3523b7692bd08fa90e98cd6f87184a15960c9.tar.gz manaplus-cef3523b7692bd08fa90e98cd6f87184a15960c9.tar.bz2 manaplus-cef3523b7692bd08fa90e98cd6f87184a15960c9.tar.xz manaplus-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.cpp | 5 |
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; |