summaryrefslogtreecommitdiff
path: root/src/net/ea/playerhandler.cpp
diff options
context:
space:
mode:
authorJared Adams <jaxad0127@gmail.com>2009-10-03 10:43:04 -0600
committerJared Adams <jaxad0127@gmail.com>2009-10-03 10:43:04 -0600
commit8607ce53d1cb84c54ed1e7bdd17ad03c188ecd0c (patch)
tree5100a7f9ba7bce002dc009d9df238486b7f4d35c /src/net/ea/playerhandler.cpp
parent62b08edc1370278be357c2f2b4b118c32b37831a (diff)
downloadmana-8607ce53d1cb84c54ed1e7bdd17ad03c188ecd0c.tar.gz
mana-8607ce53d1cb84c54ed1e7bdd17ad03c188ecd0c.tar.bz2
mana-8607ce53d1cb84c54ed1e7bdd17ad03c188ecd0c.tar.xz
mana-8607ce53d1cb84c54ed1e7bdd17ad03c188ecd0c.zip
Still update attrs for eAthena when increase fails
Corrisponding change in eAthena made too.
Diffstat (limited to 'src/net/ea/playerhandler.cpp')
-rw-r--r--src/net/ea/playerhandler.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/net/ea/playerhandler.cpp b/src/net/ea/playerhandler.cpp
index ae94ab92..95ecc47e 100644
--- a/src/net/ea/playerhandler.cpp
+++ b/src/net/ea/playerhandler.cpp
@@ -348,11 +348,14 @@ void PlayerHandler::handleMessage(MessageIn &msg)
case SMSG_PLAYER_STAT_UPDATE_4: // Attribute increase ack
{
int type = msg.readInt16();
- int fail = msg.readInt8();
+ int ok = msg.readInt8();
int value = msg.readInt8();
- if (fail != 1)
- break;
+ if (ok != 1)
+ {
+ localChatTab->chatLog(_("Cannot raise skill!."),
+ BY_SERVER);
+ }
int bonus = ATTR_BONUS(type);