diff options
author | Thorbjørn Lindeijer <bjorn@lindeijer.nl> | 2024-03-02 17:26:44 +0100 |
---|---|---|
committer | Thorbjørn Lindeijer <bjorn@lindeijer.nl> | 2024-03-02 17:27:39 +0100 |
commit | 72ceaaa426166bfa425f519c2418a66872839e12 (patch) | |
tree | 1ce7253fc629d4df445b89b2f533899341f03fc5 /src/client.cpp | |
parent | 78d6d9352f66f41963207b04a999d94c17d67cf2 (diff) | |
download | mana-72ceaaa426166bfa425f519c2418a66872839e12.tar.gz mana-72ceaaa426166bfa425f519c2418a66872839e12.tar.bz2 mana-72ceaaa426166bfa425f519c2418a66872839e12.tar.xz mana-72ceaaa426166bfa425f519c2418a66872839e12.zip |
Changed server type to "enum class"
Diffstat (limited to 'src/client.cpp')
-rw-r--r-- | src/client.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/client.cpp b/src/client.cpp index f90ca05a..98c8be30 100644 --- a/src/client.cpp +++ b/src/client.cpp @@ -384,12 +384,12 @@ Client::Client(const Options &options): loginData.remember = config.getBoolValue("remember"); loginData.registerLogin = false; - if (mCurrentServer.type == ServerInfo::UNKNOWN && mCurrentServer.port != 0) + if (mCurrentServer.type == ServerType::UNKNOWN && mCurrentServer.port != 0) { mCurrentServer.type = ServerInfo::defaultServerTypeForPort(mCurrentServer.port); } - if (mCurrentServer.type == ServerInfo::UNKNOWN) + if (mCurrentServer.type == ServerType::UNKNOWN) { mCurrentServer.type = ServerInfo::parseType( branding.getValue("defaultServerType", "tmwathena")); @@ -754,10 +754,10 @@ int Client::exec() switch (Net::getNetworkType()) { - case ServerInfo::TMWATHENA: + case ServerType::TMWATHENA: itemDb = new TmwAthena::TaItemDB; break; - case ServerInfo::MANASERV: + case ServerType::MANASERV: itemDb = new ManaServ::ManaServItemDB; break; default: @@ -815,7 +815,7 @@ int Client::exec() Net::getGameHandler()->connect(); mCurrentDialog = new ConnectionDialog( _("Connecting to the game server"), - Net::getNetworkType() == ServerInfo::TMWATHENA ? + Net::getNetworkType() == ServerType::TMWATHENA ? STATE_CHOOSE_SERVER : STATE_SWITCH_CHARACTER); break; |