summaryrefslogtreecommitdiff
path: root/src/net/ea/beinghandler.cpp
diff options
context:
space:
mode:
authorJared Adams <jaxad0127@gmail.com>2009-05-12 19:49:09 -0600
committerJared Adams <jaxad0127@gmail.com>2009-05-12 19:53:42 -0600
commit1cf7ca1327d903d6857db80f7eb1acbde8533030 (patch)
tree000a9cf57987acfb11024a724e504dad2c0f9e58 /src/net/ea/beinghandler.cpp
parentf691f9a7b121e9d32df9f648c629c98ae8d25966 (diff)
downloadmana-client-1cf7ca1327d903d6857db80f7eb1acbde8533030.tar.gz
mana-client-1cf7ca1327d903d6857db80f7eb1acbde8533030.tar.bz2
mana-client-1cf7ca1327d903d6857db80f7eb1acbde8533030.tar.xz
mana-client-1cf7ca1327d903d6857db80f7eb1acbde8533030.zip
Fix player party hilighting issues
Causes when other party memebrs were on the same map and they came in range, they wouldn't get hilighted. Also simplify the check for correct player (avoiding problems with multiple characters on an account).
Diffstat (limited to 'src/net/ea/beinghandler.cpp')
-rw-r--r--src/net/ea/beinghandler.cpp11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/net/ea/beinghandler.cpp b/src/net/ea/beinghandler.cpp
index 29ed733a..5a49442c 100644
--- a/src/net/ea/beinghandler.cpp
+++ b/src/net/ea/beinghandler.cpp
@@ -35,6 +35,8 @@
#include "npc.h"
#include "playerrelations.h"
+#include "gui/partywindow.h"
+
#include <iostream>
namespace EAthena {
@@ -445,12 +447,15 @@ void BeingHandler::handleMessage(MessageIn &msg)
dstBeing = createBeing(id, job);
}
- // Fix monster jobs
- if (dstBeing->getType() == Being::MONSTER)
{
- job -= 1002;
+ PartyMember *member = partyWindow->findMember(id);
+ if (member && member->online)
+ {
+ dynamic_cast<Player*>(dstBeing)->setInParty(true);
+ }
}
+
dstBeing->setWalkSpeed(speed);
dstBeing->mJob = job;
hairStyle = msg.readInt16();