diff options
author | Andrei Karas <akaras@inbox.ru> | 2011-04-09 19:49:14 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2011-04-09 19:49:14 +0300 |
commit | 7e3bd20e9675202e30fac741f3d3acb4f19b109d (patch) | |
tree | 9e12ab198b68e8f6ed0dd2121a72066c7b7053ba /src/net/tmwa/gamehandler.cpp | |
parent | b9d66c41246fef56e41f600b5523a5ff1a29a1c8 (diff) | |
download | manaplus-7e3bd20e9675202e30fac741f3d3acb4f19b109d.tar.gz manaplus-7e3bd20e9675202e30fac741f3d3acb4f19b109d.tar.bz2 manaplus-7e3bd20e9675202e30fac741f3d3acb4f19b109d.tar.xz manaplus-7e3bd20e9675202e30fac741f3d3acb4f19b109d.zip |
Small refactoring based on idea from mana commit 30d4b0adf4f17f05d1d62fc3428c896ef1079b6b
Diffstat (limited to 'src/net/tmwa/gamehandler.cpp')
-rw-r--r-- | src/net/tmwa/gamehandler.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/net/tmwa/gamehandler.cpp b/src/net/tmwa/gamehandler.cpp index 3e22e94bb..b1f72a834 100644 --- a/src/net/tmwa/gamehandler.cpp +++ b/src/net/tmwa/gamehandler.cpp @@ -62,7 +62,7 @@ GameHandler::GameHandler() gameHandler = this; mCharID = 0; - listen(CHANNEL_GAME); + listen(Mana::CHANNEL_GAME); } void GameHandler::handleMessage(Net::MessageIn &msg) @@ -109,13 +109,13 @@ void GameHandler::handleMessage(Net::MessageIn &msg) } } -void GameHandler::event(Channels channel, const Mana::Event &event) +void GameHandler::event(Mana::Channels channel, const Mana::Event &event) { - if (channel == CHANNEL_GAME) + if (channel == Mana::CHANNEL_GAME) { - if (event.getName() == EVENT_ENGINESINITALIZED) + if (event.getName() == Mana::EVENT_ENGINESINITALIZED) Game::instance()->changeMap(mMap); - else if (event.getName() == EVENT_MAPLOADED) + else if (event.getName() == Mana::EVENT_MAPLOADED) MessageOut outMsg(CMSG_MAP_LOADED); } } |