diff options
author | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2007-08-23 14:14:51 +0000 |
---|---|---|
committer | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2007-08-23 14:14:51 +0000 |
commit | 5b755a2a6afdba9d07703c3bf5447bf314d842ab (patch) | |
tree | 9c8c1808283d5ecc954668fc53d76d0252eec430 /src/net | |
parent | 4b8df221acc3bd3e681357df912bdbc7a1ce6c3f (diff) | |
download | mana-5b755a2a6afdba9d07703c3bf5447bf314d842ab.tar.gz mana-5b755a2a6afdba9d07703c3bf5447bf314d842ab.tar.bz2 mana-5b755a2a6afdba9d07703c3bf5447bf314d842ab.tar.xz mana-5b755a2a6afdba9d07703c3bf5447bf314d842ab.zip |
Changed XP gaining effect to appear on the player instead.
Diffstat (limited to 'src/net')
-rw-r--r-- | src/net/charserverhandler.cpp | 2 | ||||
-rw-r--r-- | src/net/playerhandler.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/net/charserverhandler.cpp b/src/net/charserverhandler.cpp index 102bb3e2..9018b0af 100644 --- a/src/net/charserverhandler.cpp +++ b/src/net/charserverhandler.cpp @@ -187,7 +187,7 @@ LocalPlayer* CharServerHandler::readPlayerData(MessageIn &msg, int &slot) tempPlayer->mTotalWeight = 0; tempPlayer->mMaxWeight = 0; tempPlayer->mLastAttackTime = 0; - tempPlayer->refreshXp(msg.readInt32()); + tempPlayer->setXp(msg.readInt32()); tempPlayer->mGp = msg.readInt32(); tempPlayer->mJobXp = msg.readInt32(); tempPlayer->mJobLevel = msg.readInt32(); diff --git a/src/net/playerhandler.cpp b/src/net/playerhandler.cpp index 07cfaa14..a5a2330b 100644 --- a/src/net/playerhandler.cpp +++ b/src/net/playerhandler.cpp @@ -194,7 +194,7 @@ void PlayerHandler::handleMessage(MessageIn *msg) case SMSG_PLAYER_STAT_UPDATE_2: switch (msg->readInt16()) { case 0x0001: - player_node->refreshXp(msg->readInt32()); + player_node->setXp(msg->readInt32()); break; case 0x0002: player_node->mJobXp = msg->readInt32(); |