summaryrefslogtreecommitdiff
path: root/src/net/tmwa/gamehandler.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/net/tmwa/gamehandler.cpp')
-rw-r--r--src/net/tmwa/gamehandler.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/net/tmwa/gamehandler.cpp b/src/net/tmwa/gamehandler.cpp
index 63f5fcec..3063c044 100644
--- a/src/net/tmwa/gamehandler.cpp
+++ b/src/net/tmwa/gamehandler.cpp
@@ -109,11 +109,11 @@ void GameHandler::event(Channels channel, const Mana::Event &event)
{
if (channel == CHANNEL_GAME)
{
- if (event.getName() == EVENT_ENGINESINITALIZED)
+ if (event.getType() == Mana::Event::EnginesInitialized)
{
Game::instance()->changeMap(mMap);
}
- else if (event.getName() == EVENT_MAPLOADED)
+ else if (event.getType() == Mana::Event::MapLoaded)
{
MessageOut outMsg(CMSG_MAP_LOADED);
}