summaryrefslogtreecommitdiffstats
path: root/src/game-server
diff options
context:
space:
mode:
authorErik Schilling <ablu.erikschilling@googlemail.com>2013-04-14 23:16:09 +0200
committerErik Schilling <ablu.erikschilling@googlemail.com>2013-05-08 14:02:50 +0200
commitefc1bde7fb961c2c5f22c904912cd1e7055815d9 (patch)
tree8ca09e00aeb9413a2c594e006638edae618e2af9 /src/game-server
parentfe26d911ca35fb6d4f886567d3c0e8f03120f4ef (diff)
downloadmanaserv-efc1bde7fb961c2c5f22c904912cd1e7055815d9.tar.gz
manaserv-efc1bde7fb961c2c5f22c904912cd1e7055815d9.tar.xz
manaserv-efc1bde7fb961c2c5f22c904912cd1e7055815d9.zip
[Abilities] Added network message for removed ability
This prevents really nasty code clientside
Diffstat (limited to 'src/game-server')
-rw-r--r--src/game-server/character.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/game-server/character.cpp b/src/game-server/character.cpp
index 25b9fbd..d9462ca 100644
--- a/src/game-server/character.cpp
+++ b/src/game-server/character.cpp
@@ -731,7 +731,9 @@ bool CharacterComponent::takeAbility(int id)
if (i != mAbilities.end())
{
mAbilities.erase(i);
- mAbilitiesUpdateNeeded = true;
+ MessageOut msg(GPMSG_ABILITY_REMOVED);
+ msg.writeInt8(id);
+ gameHandler->sendTo(mClient, msg);
return true;
}
return false;