summaryrefslogtreecommitdiff
path: root/src/localplayer.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-06-17 20:13:48 +0300
committerAndrei Karas <akaras@inbox.ru>2012-06-17 20:13:48 +0300
commitc2efedab22275302f0a10cc197424d345a021d18 (patch)
tree7488abbb3655451a3f6a1621e0708f72011af5f6 /src/localplayer.cpp
parent79aba82be3de5b6b571e2f59f7a34ded4b03160f (diff)
downloadmv-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/localplayer.cpp')
-rw-r--r--src/localplayer.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/localplayer.cpp b/src/localplayer.cpp
index 09613a717..69e2572e1 100644
--- a/src/localplayer.cpp
+++ b/src/localplayer.cpp
@@ -358,7 +358,7 @@ void LocalPlayer::slowLogic()
if (serverVersion < 4 && mEnableAdvert && !mBlockAdvert
&& mAdvertTime < cur_time)
{
- Uint8 smile = FLAG_SPECIAL;
+ uint8_t smile = FLAG_SPECIAL;
if (mTradebot && shopWindow && !shopWindow->isShopEmpty())
smile += FLAG_SHOP;
@@ -1049,7 +1049,7 @@ void LocalPlayer::setDestination(int x, int y)
}
else if (mInvertDirection == 1)
{
- Uint8 newDir = 0;
+ uint8_t newDir = 0;
if (mDirection & UP)
newDir |= DOWN;
if (mDirection & LEFT)
@@ -1270,7 +1270,7 @@ bool LocalPlayer::updateSit()
return true;
}
-bool LocalPlayer::emote(Uint8 emotion)
+bool LocalPlayer::emote(uint8_t emotion)
{
if (!Client::limitPackets(PACKET_EMOTE))
return false;
@@ -2850,7 +2850,7 @@ void LocalPlayer::crazyMoveA()
case 'L':
// if (Client::limitPackets(PACKET_DIRECTION))
{
- Uint8 dir = 0;
+ uint8_t dir = 0;
switch (mDirection)
{
case UP : dir = Being::LEFT; break;
@@ -2866,7 +2866,7 @@ void LocalPlayer::crazyMoveA()
case 'R':
// if (Client::limitPackets(PACKET_DIRECTION))
{
- Uint8 dir = 0;
+ uint8_t dir = 0;
switch (mDirection)
{
case UP : dir = Being::RIGHT; break;
@@ -2882,7 +2882,7 @@ void LocalPlayer::crazyMoveA()
case 'b':
// if (Client::limitPackets(PACKET_DIRECTION))
{
- Uint8 dir = 0;
+ uint8_t dir = 0;
switch (mDirection)
{
case UP : dir = Being::DOWN; break;
@@ -3847,7 +3847,7 @@ void LocalPlayer::imitateDirection(Being *being, unsigned char dir)
if (mFollowMode == 2)
{
- Uint8 dir2 = 0;
+ uint8_t dir2 = 0;
if (dir & Being::LEFT)
dir2 |= Being::RIGHT;
else if (dir & Being::RIGHT)
@@ -4244,7 +4244,7 @@ void LocalPlayer::updateStatus()
{
if (serverVersion >= 4 && mEnableAdvert)
{
- Uint8 status = 0;
+ uint8_t status = 0;
if (mTradebot && shopWindow && !shopWindow->isShopEmpty())
status += FLAG_SHOP;