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/eathena/charserverrecv.cpp | |
parent | 5e8e53f6e795a84ab5ca6cfe0d08672878044707 (diff) | |
download | plus-b3d17866a3c5700b52c2b0b954fce132a52c1dbf.tar.gz plus-b3d17866a3c5700b52c2b0b954fce132a52c1dbf.tar.bz2 plus-b3d17866a3c5700b52c2b0b954fce132a52c1dbf.tar.xz plus-b3d17866a3c5700b52c2b0b954fce132a52c1dbf.zip |
Convert State enum into strong typed.
Diffstat (limited to 'src/net/eathena/charserverrecv.cpp')
-rw-r--r-- | src/net/eathena/charserverrecv.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/net/eathena/charserverrecv.cpp b/src/net/eathena/charserverrecv.cpp index aed472207..d09d98768 100644 --- a/src/net/eathena/charserverrecv.cpp +++ b/src/net/eathena/charserverrecv.cpp @@ -200,7 +200,7 @@ void CharServerRecv::processCharLogin(Net::MessageIn &msg) } } - client->setState(STATE_CHAR_SELECT); + client->setState(State::CHAR_SELECT); } void CharServerRecv::processCharLogin2(Net::MessageIn &msg) @@ -247,7 +247,7 @@ void CharServerRecv::processCharMapInfo(Net::MessageIn &restrict msg) if (network) network->disconnect(); - client->setState(STATE_CONNECT_GAME); + client->setState(State::CONNECT_GAME); BLOCK_END("CharServerRecv::processCharMapInfo") } @@ -277,7 +277,7 @@ void CharServerRecv::processChangeMapServer(Net::MessageIn &msg) server.port = msg.readInt16("port"); network->disconnect(); - client->setState(STATE_CHANGE_MAP); + client->setState(State::CHANGE_MAP); if (localPlayer) { localPlayer->setTileCoords(x, y); @@ -499,7 +499,7 @@ void CharServerRecv::processCharCharacters(Net::MessageIn &msg) } } - client->setState(STATE_CHAR_SELECT); + client->setState(State::CHAR_SELECT); } void CharServerRecv::processCharBanCharList(Net::MessageIn &msg) |