summaryrefslogtreecommitdiff
path: root/src/net
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2018-07-27 19:44:13 +0300
committerAndrei Karas <akaras@inbox.ru>2018-07-27 19:44:13 +0300
commitb27338573f455ac730e6bcca9d46b50391ddf7b3 (patch)
tree3c82892185ea6d226bac8ea60f534cae02137bbe /src/net
parent03d1705dfafccdcd5ed613a2cca699e80978f747 (diff)
downloadplus-b27338573f455ac730e6bcca9d46b50391ddf7b3.tar.gz
plus-b27338573f455ac730e6bcca9d46b50391ddf7b3.tar.bz2
plus-b27338573f455ac730e6bcca9d46b50391ddf7b3.tar.xz
plus-b27338573f455ac730e6bcca9d46b50391ddf7b3.zip
Fix code style.
Diffstat (limited to 'src/net')
-rw-r--r--src/net/eathena/cashshophandler.cpp2
-rw-r--r--src/net/eathena/playerhandler.cpp12
-rw-r--r--src/net/messageout.cpp2
3 files changed, 8 insertions, 8 deletions
diff --git a/src/net/eathena/cashshophandler.cpp b/src/net/eathena/cashshophandler.cpp
index 1953fafb6..bbb979b32 100644
--- a/src/net/eathena/cashshophandler.cpp
+++ b/src/net/eathena/cashshophandler.cpp
@@ -56,7 +56,7 @@ void CashShopHandler::buyItem(const int points,
if (packetVersion < 20101124)
return;
createOutPacket(CMSG_NPC_CASH_SHOP_BUY);
- outMsg.writeInt16(10 + (2 + itemIdLen), "len");
+ outMsg.writeInt16(CAST_S16(10 + (2 + itemIdLen)), "len");
outMsg.writeInt32(points, "points");
outMsg.writeInt16(1, "count");
outMsg.writeInt16(CAST_S16(amount), "amount");
diff --git a/src/net/eathena/playerhandler.cpp b/src/net/eathena/playerhandler.cpp
index d82e28a05..0380ec098 100644
--- a/src/net/eathena/playerhandler.cpp
+++ b/src/net/eathena/playerhandler.cpp
@@ -800,12 +800,12 @@ void PlayerHandler::selectStyle(const int headColor,
if (packetVersion < 20151104)
return;
createOutPacket(CMSG_PLAYER_SELECT_STYLE);
- outMsg.writeInt16(headColor, "head color");
- outMsg.writeInt16(headStyle, "head style");
- outMsg.writeInt16(bodyColor, "body color");
- outMsg.writeInt16(topStyle, "top style");
- outMsg.writeInt16(middleStyle, "middle style");
- outMsg.writeInt16(bottomStyle, "bottom style");
+ outMsg.writeInt16(CAST_S16(headColor), "head color");
+ outMsg.writeInt16(CAST_S16(headStyle), "head style");
+ outMsg.writeInt16(CAST_S16(bodyColor), "body color");
+ outMsg.writeInt16(CAST_S16(topStyle), "top style");
+ outMsg.writeInt16(CAST_S16(middleStyle), "middle style");
+ outMsg.writeInt16(CAST_S16(bottomStyle), "bottom style");
}
#undef setStatComplex
diff --git a/src/net/messageout.cpp b/src/net/messageout.cpp
index 841e1183d..7c9ee50e5 100644
--- a/src/net/messageout.cpp
+++ b/src/net/messageout.cpp
@@ -104,7 +104,7 @@ void MessageOut::writeItemId(const int32_t value,
const char *const str)
{
if (itemIdLen == 2)
- writeInt16(CAST_S32(value), str);
+ writeInt16(CAST_S16(value), str);
else
writeInt32(value, str);
}