diff options
author | Jared Adams <jaxad0127@gmail.com> | 2009-07-23 10:24:29 -0600 |
---|---|---|
committer | Jared Adams <jaxad0127@gmail.com> | 2009-07-23 10:31:36 -0600 |
commit | 01263d9ebb304d9fba90d741bf849e0865e3c17d (patch) | |
tree | 584bda0e0ec4a37b8fe911c6539ac29d54761f94 /src/net | |
parent | 69db63d2537b959a3a994fd77ae0d630126fe7e5 (diff) | |
download | mana-client-01263d9ebb304d9fba90d741bf849e0865e3c17d.tar.gz mana-client-01263d9ebb304d9fba90d741bf849e0865e3c17d.tar.bz2 mana-client-01263d9ebb304d9fba90d741bf849e0865e3c17d.tar.xz mana-client-01263d9ebb304d9fba90d741bf849e0865e3c17d.zip |
Clear some more support ifdefs
Diffstat (limited to 'src/net')
-rw-r--r-- | src/net/ea/charserverhandler.cpp | 4 | ||||
-rw-r--r-- | src/net/ea/playerhandler.cpp | 4 |
2 files changed, 5 insertions, 3 deletions
diff --git a/src/net/ea/charserverhandler.cpp b/src/net/ea/charserverhandler.cpp index d8429d5e..811cfdce 100644 --- a/src/net/ea/charserverhandler.cpp +++ b/src/net/ea/charserverhandler.cpp @@ -175,7 +175,9 @@ LocalPlayer *CharServerHandler::readPlayerData(MessageIn &msg, int &slot) tempPlayer->setExp(msg.readInt32()); tempPlayer->setMoney(msg.readInt32()); tempPlayer->setExperience(JOB, msg.readInt32(), 1); - tempPlayer->setAttributeBase(JOB, msg.readInt32()); + int temp = msg.readInt32(); + tempPlayer->setAttributeBase(JOB, temp); + tempPlayer->setAttributeEffective(JOB, temp); tempPlayer->setSprite(Being::SHOE_SPRITE, msg.readInt16()); tempPlayer->setSprite(Being::GLOVES_SPRITE, msg.readInt16()); tempPlayer->setSprite(Being::CAPE_SPRITE, msg.readInt16()); diff --git a/src/net/ea/playerhandler.cpp b/src/net/ea/playerhandler.cpp index 60c7e2c1..ea3f40d5 100644 --- a/src/net/ea/playerhandler.cpp +++ b/src/net/ea/playerhandler.cpp @@ -289,8 +289,8 @@ void PlayerHandler::handleMessage(MessageIn &msg) player_node->setAttributeEffective(CRIT, value); break; case 0x0035: player_node->mAttackSpeed = value; break; - case 0x0037: - player_node->setAttributeBase(JOB, value); break; + case 0x0037: player_node->setAttributeBase(JOB, value); + player_node->setAttributeEffective(JOB, value); break; case 500: player_node->setGMLevel(value); break; } |