diff options
author | Andrei Karas <akaras@inbox.ru> | 2011-04-09 22:20:07 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2011-04-09 22:20:07 +0300 |
commit | b5e7af7c60356a7cd2c777a5b708d9bee02efb8e (patch) | |
tree | a9247cfde0ecec0041711fc5a7f08456ed9b633e | |
parent | 14c89c0f50dd04c1187819abcc24490fa975574e (diff) | |
download | manaplus-b5e7af7c60356a7cd2c777a5b708d9bee02efb8e.tar.gz manaplus-b5e7af7c60356a7cd2c777a5b708d9bee02efb8e.tar.bz2 manaplus-b5e7af7c60356a7cd2c777a5b708d9bee02efb8e.tar.xz manaplus-b5e7af7c60356a7cd2c777a5b708d9bee02efb8e.zip |
Fix compilation in manaserv.
-rw-r--r-- | src/net/manaserv/generalhandler.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/net/manaserv/generalhandler.cpp b/src/net/manaserv/generalhandler.cpp index 8b38deb21..6957d4cb4 100644 --- a/src/net/manaserv/generalhandler.cpp +++ b/src/net/manaserv/generalhandler.cpp @@ -93,8 +93,8 @@ GeneralHandler::GeneralHandler(): generalHandler = this; - listen(CHANNEL_CLIENT); - listen(CHANNEL_GAME); + listen(Mana::CHANNEL_CLIENT); + listen(Mana::CHANNEL_GAME); } void GeneralHandler::load() @@ -183,13 +183,13 @@ void GeneralHandler::event(Mana::Channels channel, { int newState = event.getInt("newState"); - if (newState == Mana::STATE_GAME) + if (newState == STATE_GAME) { GameHandler *game = static_cast<GameHandler*>( Net::getGameHandler()); game->gameLoading(); } - else if (newState == Mana::STATE_LOAD_DATA) + else if (newState == STATE_LOAD_DATA) { Attributes::load(); Attributes::informItemDB(); |