diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-03-28 01:51:25 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-03-28 01:51:25 +0300 |
commit | ff936ce120283ade23d88725c7d38542beca0a93 (patch) | |
tree | 5b2d26630c3a0537b0f578994d9ada7653c0cab3 /src/game.cpp | |
parent | c9b13ba269857de0311863bf4d4461185fe10459 (diff) | |
download | manaverse-ff936ce120283ade23d88725c7d38542beca0a93.tar.gz manaverse-ff936ce120283ade23d88725c7d38542beca0a93.tar.bz2 manaverse-ff936ce120283ade23d88725c7d38542beca0a93.tar.xz manaverse-ff936ce120283ade23d88725c7d38542beca0a93.zip |
improve gamehandler class
Diffstat (limited to 'src/game.cpp')
-rw-r--r-- | src/game.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/game.cpp b/src/game.cpp index 4fc833edb..da60f114b 100644 --- a/src/game.cpp +++ b/src/game.cpp @@ -178,8 +178,7 @@ static void initEngines() particleEngine->setupEngine(); BeingInfo::init(); - DepricatedEvent::trigger(CHANNEL_GAME, - DepricatedEvent(EVENT_ENGINESINITALIZED)); + Net::getGameHandler()->initEngines(); keyboard.update(); if (joystick) @@ -1092,9 +1091,7 @@ void Game::changeMap(const std::string &mapPath) if (mumbleManager) mumbleManager->setMap(mapPath); #endif - DepricatedEvent event(EVENT_MAPLOADED); - event.setString("mapPath", mapPath); - DepricatedEvent::trigger(CHANNEL_GAME, event); + Net::getGameHandler()->mapLoadedEvent(); } void Game::updateHistory(const SDL_Event &event) |