summaryrefslogtreecommitdiff
path: root/src/net/eathena/adminhandler.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-09-12 17:07:09 +0300
committerAndrei Karas <akaras@inbox.ru>2014-09-12 17:07:09 +0300
commit566ae30ff94caf6c92fc7d64f021b567933f8a60 (patch)
treeeae43b8899444f99a97fdd00bc5df8a117c316e9 /src/net/eathena/adminhandler.cpp
parent247418a3ec0b50479c7bac80322202b01527ae61 (diff)
downloadmv-566ae30ff94caf6c92fc7d64f021b567933f8a60.tar.gz
mv-566ae30ff94caf6c92fc7d64f021b567933f8a60.tar.bz2
mv-566ae30ff94caf6c92fc7d64f021b567933f8a60.tar.xz
mv-566ae30ff94caf6c92fc7d64f021b567933f8a60.zip
fix code style.
Diffstat (limited to 'src/net/eathena/adminhandler.cpp')
-rw-r--r--src/net/eathena/adminhandler.cpp19
1 files changed, 7 insertions, 12 deletions
diff --git a/src/net/eathena/adminhandler.cpp b/src/net/eathena/adminhandler.cpp
index c05c00771..7ef2dc645 100644
--- a/src/net/eathena/adminhandler.cpp
+++ b/src/net/eathena/adminhandler.cpp
@@ -24,11 +24,6 @@
#include "notifymanager.h"
-#include "gui/chatconsts.h"
-
-#include "net/chathandler.h"
-#include "net/net.h"
-
#include "net/eathena/messageout.h"
#include "net/eathena/protocol.h"
@@ -114,8 +109,8 @@ void AdminHandler::warp(const std::string &map, const int x, const int y) const
{
MessageOut outMsg(CMSG_PLAYER_MAPMOVE);
outMsg.writeString(map, 16, "map");
- outMsg.writeInt16(x, "x");
- outMsg.writeInt16(y, "y");
+ outMsg.writeInt16(static_cast<int16_t>(x), "x");
+ outMsg.writeInt16(static_cast<int16_t>(y), "y");
}
void AdminHandler::resetStats() const
@@ -151,8 +146,8 @@ void AdminHandler::mute(const Being *const being,
MessageOut outMsg(CMSG_ADMIN_MUTE);
outMsg.writeInt32(being->getId(), "account id");
- outMsg.writeInt8(type, "type");
- outMsg.writeInt16(limit, "value");
+ outMsg.writeInt8(static_cast<int8_t>(type), "type");
+ outMsg.writeInt16(static_cast<int16_t>(limit), "value");
}
void AdminHandler::muteName(const std::string &name) const
@@ -174,9 +169,9 @@ void AdminHandler::setTileType(const int x, const int y,
const int type) const
{
MessageOut outMsg(CMSG_ADMIN_SET_TILE_TYPE);
- outMsg.writeInt16(x, "x");
- outMsg.writeInt16(y, "y");
- outMsg.writeInt16(type, "type");
+ outMsg.writeInt16(static_cast<int16_t>(x), "x");
+ outMsg.writeInt16(static_cast<int16_t>(y), "y");
+ outMsg.writeInt16(static_cast<int16_t>(type), "type");
}
void AdminHandler::unequipAll(const Being *const being) const