diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-09-12 17:07:09 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-09-12 17:07:09 +0300 |
commit | 566ae30ff94caf6c92fc7d64f021b567933f8a60 (patch) | |
tree | eae43b8899444f99a97fdd00bc5df8a117c316e9 /src/net/eathena/npchandler.cpp | |
parent | 247418a3ec0b50479c7bac80322202b01527ae61 (diff) | |
download | manaplus-566ae30ff94caf6c92fc7d64f021b567933f8a60.tar.gz manaplus-566ae30ff94caf6c92fc7d64f021b567933f8a60.tar.bz2 manaplus-566ae30ff94caf6c92fc7d64f021b567933f8a60.tar.xz manaplus-566ae30ff94caf6c92fc7d64f021b567933f8a60.zip |
fix code style.
Diffstat (limited to 'src/net/eathena/npchandler.cpp')
-rw-r--r-- | src/net/eathena/npchandler.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/net/eathena/npchandler.cpp b/src/net/eathena/npchandler.cpp index cef952252..90a441d0a 100644 --- a/src/net/eathena/npchandler.cpp +++ b/src/net/eathena/npchandler.cpp @@ -203,10 +203,10 @@ void NpcHandler::produceMix(const int nameId, const int materialId3) const { MessageOut outMsg(CMSG_NPC_PRODUCE_MIX); - outMsg.writeInt16(nameId, "name id"); - outMsg.writeInt16(materialId1, "material 1"); - outMsg.writeInt16(materialId2, "material 2"); - outMsg.writeInt16(materialId3, "material 3"); + outMsg.writeInt16(static_cast<int16_t>(nameId), "name id"); + outMsg.writeInt16(static_cast<int16_t>(materialId1), "material 1"); + outMsg.writeInt16(static_cast<int16_t>(materialId2), "material 2"); + outMsg.writeInt16(static_cast<int16_t>(materialId3), "material 3"); } void NpcHandler::cooking(const CookingType::Type type, @@ -214,7 +214,7 @@ void NpcHandler::cooking(const CookingType::Type type, { MessageOut outMsg(CMSG_NPC_COOKING); outMsg.writeInt16(static_cast<int16_t>(type), "type"); - outMsg.writeInt16(nameId, "name id"); + outMsg.writeInt16(static_cast<int16_t>(nameId), "name id"); } void NpcHandler::repair(const int index) const @@ -232,19 +232,19 @@ void NpcHandler::refine(const int index) const void NpcHandler::identify(const int index) const { MessageOut outMsg(CMSG_NPC_IDENTIFY); - outMsg.writeInt16(index, "index"); + outMsg.writeInt16(static_cast<int16_t>(index), "index"); } void NpcHandler::selectArrow(const int nameId) const { MessageOut outMsg(CMSG_NPC_SELECT_ARROW); - outMsg.writeInt16(nameId, "name id"); + outMsg.writeInt16(static_cast<int16_t>(nameId), "name id"); } void NpcHandler::selectAutoSpell(const int skillId) const { MessageOut outMsg(CMSG_NPC_SELECT_AUTO_SPELL); - outMsg.writeInt32(skillId, "skill id"); + outMsg.writeInt32(static_cast<int16_t>(skillId), "skill id"); } int NpcHandler::getNpc(Net::MessageIn &msg) |