summaryrefslogtreecommitdiff
path: root/src/game.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-03-28 01:51:25 +0300
committerAndrei Karas <akaras@inbox.ru>2013-03-28 01:51:25 +0300
commitff936ce120283ade23d88725c7d38542beca0a93 (patch)
tree5b2d26630c3a0537b0f578994d9ada7653c0cab3 /src/game.cpp
parentc9b13ba269857de0311863bf4d4461185fe10459 (diff)
downloadmanaplus-ff936ce120283ade23d88725c7d38542beca0a93.tar.gz
manaplus-ff936ce120283ade23d88725c7d38542beca0a93.tar.bz2
manaplus-ff936ce120283ade23d88725c7d38542beca0a93.tar.xz
manaplus-ff936ce120283ade23d88725c7d38542beca0a93.zip
improve gamehandler class
Diffstat (limited to 'src/game.cpp')
-rw-r--r--src/game.cpp7
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)