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/gui/charcreatedialog.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/gui/charcreatedialog.cpp')
-rw-r--r-- | src/gui/charcreatedialog.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/charcreatedialog.cpp b/src/gui/charcreatedialog.cpp index fd27c89c..0d8a928e 100644 --- a/src/gui/charcreatedialog.cpp +++ b/src/gui/charcreatedialog.cpp @@ -167,7 +167,7 @@ void CharCreateDialog::action(const gcn::ActionEvent &event) { if (event.getId() == "create") { - if (Net::getNetworkType() == ServerInfo::MANASERV + if (Net::getNetworkType() == ServerType::MANASERV || getName().length() >= 4) { // Attempt to create the character @@ -175,7 +175,7 @@ void CharCreateDialog::action(const gcn::ActionEvent &event) int characterSlot = mSlot; // On Manaserv, the slots start at 1, so we offset them. - if (Net::getNetworkType() == ServerInfo::MANASERV) + if (Net::getNetworkType() == ServerType::MANASERV) ++characterSlot; // Should avoid the most common crash case |