diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-10-16 00:27:51 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-10-16 00:32:49 +0300 |
commit | 2ed0917b4ee942ff55639500f846ae9cb4f48b90 (patch) | |
tree | 431158e61d703a747115088e1b084651c923e0dd /src/localplayer.cpp | |
parent | 875ece90ff94c4cf295b53c8bb37d9238ece38e9 (diff) | |
download | manaplus-2ed0917b4ee942ff55639500f846ae9cb4f48b90.tar.gz manaplus-2ed0917b4ee942ff55639500f846ae9cb4f48b90.tar.bz2 manaplus-2ed0917b4ee942ff55639500f846ae9cb4f48b90.tar.xz manaplus-2ed0917b4ee942ff55639500f846ae9cb4f48b90.zip |
Fix some signed/unsigned chars issues.
Diffstat (limited to 'src/localplayer.cpp')
-rw-r--r-- | src/localplayer.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/localplayer.cpp b/src/localplayer.cpp index bc201359a..f3a45bdeb 100644 --- a/src/localplayer.cpp +++ b/src/localplayer.cpp @@ -2054,7 +2054,7 @@ std::string LocalPlayer::getQuickDropCounterString() { if (mQuickDropCounter > 9) { - return strprintf("(%c) drop counter %u", static_cast<char>( + return strprintf("(%c) drop counter %u", static_cast<signed char>( 'a' + mQuickDropCounter - 10), mQuickDropCounter); } else @@ -2758,7 +2758,7 @@ void LocalPlayer::crazyMoveA() int dx = 0; int dy = 0; - char param = mMoveProgram[mCrazyMoveState++]; + signed char param = mMoveProgram[mCrazyMoveState++]; if (param == '?') { const char cmd[] = {'l', 'r', 'u', 'd'}; @@ -2813,7 +2813,7 @@ void LocalPlayer::crazyMoveA() if (mCrazyMoveState < mMoveProgram.length()) { - char param = mMoveProgram[mCrazyMoveState++]; + signed char param = mMoveProgram[mCrazyMoveState++]; if (param == '?') { const char cmd[] = {'l', 'r', 'u', 'd'}; @@ -2952,7 +2952,7 @@ void LocalPlayer::crazyMoveA() else if (mMoveProgram[mCrazyMoveState] == 'e') { mCrazyMoveState ++; - const char emo = mMoveProgram[mCrazyMoveState]; + const signed char emo = mMoveProgram[mCrazyMoveState]; if (emo == '?') { srand(tick_time); |