From 3ed2e647a7ec634a91a32e7ac493c9f2b6d693b0 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 26 Sep 2014 23:25:32 +0300 Subject: Fix code style. --- src/net/eathena/homunculushandler.cpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'src/net/eathena/homunculushandler.cpp') diff --git a/src/net/eathena/homunculushandler.cpp b/src/net/eathena/homunculushandler.cpp index f96ad006b..948da91f2 100644 --- a/src/net/eathena/homunculushandler.cpp +++ b/src/net/eathena/homunculushandler.cpp @@ -21,7 +21,6 @@ #include "net/eathena/homunculushandler.h" #include "actormanager.h" -#include "logger.h" #include "notifymanager.h" #include "being/homunculusinfo.h" @@ -29,8 +28,6 @@ #include "gui/windows/skilldialog.h" -#include "net/ea/eaprotocol.h" - #include "net/eathena/messageout.h" #include "net/eathena/protocol.h" @@ -258,7 +255,9 @@ void HomunculusHandler::move(const int x, const int y) const return; createOutPacket(CMSG_HOMMERC_MOVE_TO); outMsg.writeInt32(id); - outMsg.writeCoordinates(x, y, 0U); + outMsg.writeCoordinates(static_cast(x), + static_cast(y), + 0U); } void HomunculusHandler::attack(const int targetId, const bool keep) const @@ -269,7 +268,7 @@ void HomunculusHandler::attack(const int targetId, const bool keep) const createOutPacket(CMSG_HOMMERC_ATTACK); outMsg.writeInt32(id); outMsg.writeInt32(targetId); - outMsg.writeInt8(keep ? 1 : 0); + outMsg.writeInt8(static_cast(keep ? 1 : 0)); } void HomunculusHandler::feed() const -- cgit v1.2.3-70-g09d2