diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-06-17 20:13:48 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-06-17 20:13:48 +0300 |
commit | c2efedab22275302f0a10cc197424d345a021d18 (patch) | |
tree | 7488abbb3655451a3f6a1621e0708f72011af5f6 /src/net/tmwa/playerhandler.cpp | |
parent | 79aba82be3de5b6b571e2f59f7a34ded4b03160f (diff) | |
download | mv-c2efedab22275302f0a10cc197424d345a021d18.tar.gz mv-c2efedab22275302f0a10cc197424d345a021d18.tar.bz2 mv-c2efedab22275302f0a10cc197424d345a021d18.tar.xz mv-c2efedab22275302f0a10cc197424d345a021d18.zip |
Replace SDL int types to C++ types.
Diffstat (limited to 'src/net/tmwa/playerhandler.cpp')
-rw-r--r-- | src/net/tmwa/playerhandler.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/net/tmwa/playerhandler.cpp b/src/net/tmwa/playerhandler.cpp index eb9dac6f0..5c0b8d950 100644 --- a/src/net/tmwa/playerhandler.cpp +++ b/src/net/tmwa/playerhandler.cpp @@ -43,7 +43,7 @@ namespace TmwAthena PlayerHandler::PlayerHandler() { - static const Uint16 _messages[] = + static const uint16_t _messages[] = { SMSG_WALK_RESPONSE, SMSG_PLAYER_WARP, @@ -125,7 +125,7 @@ void PlayerHandler::stopAttack() MessageOut outMsg(CMSG_PLAYER_STOP_ATTACK); } -void PlayerHandler::emote(Uint8 emoteId) +void PlayerHandler::emote(uint8_t emoteId) { MessageOut outMsg(CMSG_PLAYER_EMOTE); outMsg.writeInt8(emoteId); @@ -136,7 +136,7 @@ void PlayerHandler::increaseAttribute(int attr) if (attr >= STR && attr <= LUK) { MessageOut outMsg(CMSG_STAT_UPDATE_REQUEST); - outMsg.writeInt16(static_cast<Sint16>(attr)); + outMsg.writeInt16(static_cast<int16_t>(attr)); outMsg.writeInt8(1); } } @@ -277,7 +277,7 @@ void PlayerHandler::processOnlineList(Net::MessageIn &msg) delete [] start; } -void PlayerHandler::updateStatus(Uint8 status) +void PlayerHandler::updateStatus(uint8_t status) { MessageOut outMsg(CMSG_SET_STATUS); outMsg.writeInt8(status); |