From 68926c15e6d31c4af90bce9ec57aa39f839d7d6b Mon Sep 17 00:00:00 2001 From: Ira Rice Date: Wed, 3 Dec 2008 12:30:11 -0700 Subject: Add an effects manager (patch by Kage Jittai) NOTE: This patch demonstrates the need to fix pixel coordinates in the eAthena client. Bjorn did the movement patch in the TMWClient, however, I still haven't got that fully working with the merges. It's likely that a clone will be developed to tackle this problem. Signed-off-by: Ira Rice --- src/net/beinghandler.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/net') diff --git a/src/net/beinghandler.cpp b/src/net/beinghandler.cpp index 8a7e61a1..b016b5cf 100644 --- a/src/net/beinghandler.cpp +++ b/src/net/beinghandler.cpp @@ -28,6 +28,7 @@ #include "../being.h" #include "../beingmanager.h" +#include "../effectmanager.h" #include "../game.h" #include "../localplayer.h" #include "../log.h" @@ -269,8 +270,10 @@ void BeingHandler::handleMessage(MessageIn *msg) break; int effectType = msg->readInt32(); + Being* being = beingManager->findBeing(id); - beingManager->findBeing(id)->triggerEffect(effectType); + effectManager->trigger(effectType, (int) being->getPixelX(), + (int) being->getPixelY()); break; } -- cgit v1.2.3-70-g09d2