From a4640305fd0d88c6332112712aa69e496368e01b Mon Sep 17 00:00:00 2001 From: Chuck Miller Date: Thu, 11 Nov 2010 23:12:29 -0500 Subject: Replace Event names with enums instead of strings --- src/being.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/being.cpp') diff --git a/src/being.cpp b/src/being.cpp index c749d8ce..a9790246 100644 --- a/src/being.cpp +++ b/src/being.cpp @@ -1208,7 +1208,7 @@ bool Being::canTalk() void Being::talkTo() { - Mana::Event event("doTalk"); + Mana::Event event(EVENT_DOTALK); event.setInt("npcId", mId); event.trigger(CHANNEL_NPC); } @@ -1216,7 +1216,7 @@ void Being::talkTo() void Being::event(Channels channel, const Mana::Event &event) { if (channel == CHANNEL_CHAT && - (event.getName() == "Being" || event.getName() == "Player") && + (event.getName() == EVENT_BEING || event.getName() == EVENT_PLAYER) && event.getInt("permissions") & PlayerRelation::SPEECH_FLOAT) { try -- cgit v1.2.3-70-g09d2