From 5727a2d9eeb0688a16e5b7fe32f6d9836c4f7a4e Mon Sep 17 00:00:00 2001 From: Chuck Miller Date: Thu, 11 Nov 2010 21:55:25 -0500 Subject: Have the event system channels use enums instead of strings Reviewed-by: Freeyorp --- src/client.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/client.cpp') diff --git a/src/client.cpp b/src/client.cpp index 975e3e05..4c8d1102 100644 --- a/src/client.cpp +++ b/src/client.cpp @@ -612,7 +612,7 @@ int Client::exec() Mana::Event event("StateChange"); event.setInt("oldState", mOldState); event.setInt("newState", mState); - event.trigger("Client"); + event.trigger(CHANNEL_CLIENT); } if (mOldState == STATE_GAME) @@ -772,7 +772,7 @@ int Client::exec() paths.init("paths.xml", true); paths.setDefaultValues(getPathsDefaults()); - Mana::Event::trigger("Client", "DBsLoading"); + Mana::Event::trigger(CHANNEL_CLIENT, "DBsLoading"); // Load XML databases ColorDB::load(); -- cgit v1.2.3-70-g09d2