summaryrefslogtreecommitdiff
path: root/src/being.cpp
diff options
context:
space:
mode:
authorChuck Miller <shadowmil@gmail.com>2010-11-12 20:58:30 -0500
committerChuck Miller <shadowmil@gmail.com>2010-11-12 21:16:08 -0500
commit009cfa4b2959bf89370e9d271f2244ef5446f3a0 (patch)
tree88f9185140a636b8c6fc3badfdec55cfee826290 /src/being.cpp
parent9ac7645f10d1e419703bdd35b276ce6e4eaf8152 (diff)
downloadmana-009cfa4b2959bf89370e9d271f2244ef5446f3a0.tar.gz
mana-009cfa4b2959bf89370e9d271f2244ef5446f3a0.tar.bz2
mana-009cfa4b2959bf89370e9d271f2244ef5446f3a0.tar.xz
mana-009cfa4b2959bf89370e9d271f2244ef5446f3a0.zip
Change NPC handling in the net code
Instead of using events to invoke netcode, invoke netcode directly and have it send events Reviewed-by: Freeyorp
Diffstat (limited to 'src/being.cpp')
-rw-r--r--src/being.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/being.cpp b/src/being.cpp
index a9790246..47410620 100644
--- a/src/being.cpp
+++ b/src/being.cpp
@@ -49,6 +49,7 @@
#include "net/gamehandler.h"
#include "net/net.h"
#include "net/playerhandler.h"
+#include "net/npchandler.h"
#include "resources/beinginfo.h"
#include "resources/colordb.h"
@@ -1208,9 +1209,7 @@ bool Being::canTalk()
void Being::talkTo()
{
- Mana::Event event(EVENT_DOTALK);
- event.setInt("npcId", mId);
- event.trigger(CHANNEL_NPC);
+ Net::getNpcHandler()->talk(mId);
}
void Being::event(Channels channel, const Mana::Event &event)