diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-11-16 22:35:17 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-11-16 22:35:17 +0300 |
commit | b3d17866a3c5700b52c2b0b954fce132a52c1dbf (patch) | |
tree | 7ba07c98a1842eb766de35e172f559dcf5ac6fb4 /src/net/tmwa/loginrecv.cpp | |
parent | 5e8e53f6e795a84ab5ca6cfe0d08672878044707 (diff) | |
download | manaplus-b3d17866a3c5700b52c2b0b954fce132a52c1dbf.tar.gz manaplus-b3d17866a3c5700b52c2b0b954fce132a52c1dbf.tar.bz2 manaplus-b3d17866a3c5700b52c2b0b954fce132a52c1dbf.tar.xz manaplus-b3d17866a3c5700b52c2b0b954fce132a52c1dbf.zip |
Convert State enum into strong typed.
Diffstat (limited to 'src/net/tmwa/loginrecv.cpp')
-rw-r--r-- | src/net/tmwa/loginrecv.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/net/tmwa/loginrecv.cpp b/src/net/tmwa/loginrecv.cpp index c6aa48b83..783e5d55c 100644 --- a/src/net/tmwa/loginrecv.cpp +++ b/src/net/tmwa/loginrecv.cpp @@ -86,8 +86,8 @@ void LoginRecv::processServerVersion(Net::MessageIn &msg) if (serverVersion < 5) { - if (client->getState() != STATE_LOGIN) - client->setState(STATE_LOGIN); + if (client->getState() != State::LOGIN) + client->setState(State::LOGIN); } // Leave this last @@ -101,7 +101,7 @@ void LoginRecv::processCharPasswordResponse(Net::MessageIn &msg) // Successful pass change if (errMsg == 1) { - client->setState(STATE_CHANGEPASSWORD_SUCCESS); + client->setState(State::CHANGEPASSWORD_SUCCESS); } // pass change failed else @@ -126,7 +126,7 @@ void LoginRecv::processCharPasswordResponse(Net::MessageIn &msg) errorMessage = _("Unknown error."); break; } - client->setState(STATE_ACCOUNTCHANGE_ERROR); + client->setState(State::ACCOUNTCHANGE_ERROR); } } |