diff options
author | David Athay <ko2fan@gmail.com> | 2008-11-24 16:58:35 +0000 |
---|---|---|
committer | David Athay <ko2fan@gmail.com> | 2008-11-24 16:58:35 +0000 |
commit | 7f2f9c2a1e50fb3558418debad71a100770b888a (patch) | |
tree | 2048066e5200f3d4a7a690014c8182bf83e38caa /src | |
parent | 66b9fe66399e13bdebd56091250aa1eec8ac1040 (diff) | |
download | manaserv-7f2f9c2a1e50fb3558418debad71a100770b888a.tar.gz manaserv-7f2f9c2a1e50fb3558418debad71a100770b888a.tar.bz2 manaserv-7f2f9c2a1e50fb3558418debad71a100770b888a.tar.xz manaserv-7f2f9c2a1e50fb3558418debad71a100770b888a.zip |
Fixed character party information on game server.
Diffstat (limited to 'src')
-rw-r--r-- | src/game-server/accountconnection.cpp | 4 | ||||
-rw-r--r-- | src/game-server/monster.cpp | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/game-server/accountconnection.cpp b/src/game-server/accountconnection.cpp index ccfd37bf..43c4f20d 100644 --- a/src/game-server/accountconnection.cpp +++ b/src/game-server/accountconnection.cpp @@ -135,10 +135,10 @@ void AccountConnection::processMessage(MessageIn &msg) case CGMSG_CHANGED_PARTY: { - // Party id, 0 for none - int partyid = msg.readLong(); // Character DB id int charid = msg.readLong(); + // Party id, 0 for none + int partyid = msg.readLong(); gameHandler->updateCharacter(charid, partyid); } break; diff --git a/src/game-server/monster.cpp b/src/game-server/monster.cpp index 582dabed..b8333e40 100644 --- a/src/game-server/monster.cpp +++ b/src/game-server/monster.cpp @@ -339,7 +339,7 @@ int Monster::damage(Object *source, Damage const &damage) if (damage.usedSkill) { mExpReceivers[s].insert(damage.usedSkill); - if (!mOwnerTimer || mOwner == s /*TODO: || mOwner->getParty() == s->getParty() */) + if (!mOwnerTimer || mOwner == s || mOwner->getParty() == s->getParty()) { mOwner = s; mLegalExpReceivers.insert(s); |