diff options
author | Thorbjørn Lindeijer <thorbjorn@lindeijer.nl> | 2011-04-09 00:03:44 +0200 |
---|---|---|
committer | Thorbjørn Lindeijer <thorbjorn@lindeijer.nl> | 2011-04-09 17:54:12 +0200 |
commit | 30d4b0adf4f17f05d1d62fc3428c896ef1079b6b (patch) | |
tree | acc6dab5d6894a949df3ab4d913ef72a1b1ebdca /src/client.cpp | |
parent | b499cf0c03f2589d36a1df14c81530347243940a (diff) | |
download | mana-30d4b0adf4f17f05d1d62fc3428c896ef1079b6b.tar.gz mana-30d4b0adf4f17f05d1d62fc3428c896ef1079b6b.tar.bz2 mana-30d4b0adf4f17f05d1d62fc3428c896ef1079b6b.tar.xz mana-30d4b0adf4f17f05d1d62fc3428c896ef1079b6b.zip |
Moved Events to Mana::Event::Type
Acked-by: Jared Adams
Diffstat (limited to 'src/client.cpp')
-rw-r--r-- | src/client.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/client.cpp b/src/client.cpp index 7dbbdc88..0752b70a 100644 --- a/src/client.cpp +++ b/src/client.cpp @@ -474,7 +474,7 @@ Client::Client(const Options &options): listen(CHANNEL_CONFIG); //TODO: fix having to fake a option changed event - Mana::Event fakeevent(EVENT_CONFIGOPTIONCHANGED); + Mana::Event fakeevent(Mana::Event::ConfigOptionChanged); fakeevent.setString("option", "fpslimit"); event(CHANNEL_CONFIG, fakeevent); @@ -634,7 +634,7 @@ int Client::exec() if (mState != mOldState) { { - Mana::Event event(EVENT_STATECHANGE); + Mana::Event event(Mana::Event::StateChange); event.setInt("oldState", mOldState); event.setInt("newState", mState); event.trigger(CHANNEL_CLIENT); @@ -797,7 +797,7 @@ int Client::exec() paths.init("paths.xml", true); paths.setDefaultValues(getPathsDefaults()); - Mana::Event::trigger(CHANNEL_CLIENT, EVENT_DBSLOADING); + Mana::Event::trigger(CHANNEL_CLIENT, Mana::Event::LoadingDatabases); // Load XML databases ColorDB::load(); @@ -1075,7 +1075,7 @@ int Client::exec() void Client::event(Channels channel, const Mana::Event &event) { if (channel == CHANNEL_CONFIG && - event.getName() == EVENT_CONFIGOPTIONCHANGED && + event.getType() == Mana::Event::ConfigOptionChanged && event.getString("option") == "fpslimit") { const int fpsLimit = config.getIntValue("fpslimit"); |