diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-08-23 22:00:27 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-08-24 21:08:16 +0300 |
commit | c2a7004213529c403faeb6fdcc374699aa2f53b5 (patch) | |
tree | f5701ef3412923bc0e5e033033bd52960d66acc3 /src/net/ea/gamehandler.cpp | |
parent | e8a4474319aca4a32869fa1ebb8b5ebbd98237f6 (diff) | |
download | manaverse-c2a7004213529c403faeb6fdcc374699aa2f53b5.tar.gz manaverse-c2a7004213529c403faeb6fdcc374699aa2f53b5.tar.bz2 manaverse-c2a7004213529c403faeb6fdcc374699aa2f53b5.tar.xz manaverse-c2a7004213529c403faeb6fdcc374699aa2f53b5.zip |
improve getState/setState in Client.
Diffstat (limited to 'src/net/ea/gamehandler.cpp')
-rw-r--r-- | src/net/ea/gamehandler.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/net/ea/gamehandler.cpp b/src/net/ea/gamehandler.cpp index faee4b2d8..df2c4ec47 100644 --- a/src/net/ea/gamehandler.cpp +++ b/src/net/ea/gamehandler.cpp @@ -59,7 +59,7 @@ void GameHandler::processMapLogin(Net::MessageIn &msg) const logger->log("Protocol: Player start position: (%d, %d)," " Direction: %d", x, y, direction); // Switch now or we'll have problems - Client::setState(STATE_GAME); + client->setState(STATE_GAME); if (player_node) player_node->setTileCoords(x, y); } @@ -72,7 +72,7 @@ void GameHandler::processWhoAnswer(Net::MessageIn &msg) const void GameHandler::processCharSwitchResponse(Net::MessageIn &msg) const { if (msg.readInt8()) - Client::setState(STATE_SWITCH_CHARACTER); + client->setState(STATE_SWITCH_CHARACTER); } void GameHandler::processMapQuitResponse(Net::MessageIn &msg) const |