From ff936ce120283ade23d88725c7d38542beca0a93 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 28 Mar 2013 01:51:25 +0300 Subject: improve gamehandler class --- src/game.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'src/game.cpp') 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) -- cgit v1.2.3-60-g2f50