From fc854786ed73fe768d6a3ca22c02f7013560a930 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 1 Aug 2012 21:35:49 +0300 Subject: Fix code style. --- src/net/eathena/beinghandler.cpp | 2 +- src/net/eathena/charserverhandler.cpp | 7 ++++--- 2 files changed, 5 insertions(+), 4 deletions(-) (limited to 'src/net/eathena') diff --git a/src/net/eathena/beinghandler.cpp b/src/net/eathena/beinghandler.cpp index 799282d59..9cd7fdeaf 100644 --- a/src/net/eathena/beinghandler.cpp +++ b/src/net/eathena/beinghandler.cpp @@ -782,7 +782,7 @@ void BeingHandler::processBeingVisibleOrMove(Net::MessageIn &msg, bool visible) setSprite(dstBeing, SPRITE_HAT, headTop); setSprite(dstBeing, SPRITE_SHOE, shoes); setSprite(dstBeing, SPRITE_GLOVES, gloves); - setSprite(dstBeing, SPRITE_WEAPON, weapon, "", true); + setSprite(dstBeing, SPRITE_WEAPON, weapon, "", 1, true); if (!config.getBoolValue("hideShield")) setSprite(dstBeing, SPRITE_SHIELD, shield); } diff --git a/src/net/eathena/charserverhandler.cpp b/src/net/eathena/charserverhandler.cpp index 2348e0a67..085767a46 100644 --- a/src/net/eathena/charserverhandler.cpp +++ b/src/net/eathena/charserverhandler.cpp @@ -178,11 +178,12 @@ void CharServerHandler::readPlayerData(Net::MessageIn &msg, PlayerInfoBackend &data = character->data; data.mAttributes[PlayerInfo::EXP] = msg.readInt32(); data.mAttributes[PlayerInfo::MONEY] = msg.readInt32(); - data.mStats[JOB].exp = msg.readInt32(); + Stat &jobStat = data.mStats[JOB]; + jobStat.exp = msg.readInt32(); int temp = msg.readInt32(); - data.mStats[JOB].base = temp; - data.mStats[JOB].mod = temp; + jobStat.base = temp; + jobStat.mod = temp; int shoes = msg.readInt16(); int gloves = msg.readInt16(); -- cgit v1.2.3-70-g09d2