summaryrefslogtreecommitdiff
path: root/src/localplayer.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2011-03-27 21:41:20 +0300
committerAndrei Karas <akaras@inbox.ru>2011-03-27 21:41:20 +0300
commit964ffbb9b6ed5246b14a7d0c0d065f7d38af0912 (patch)
treeedef1b3f31183402e2d0f86ee48c9734c2a03c7e /src/localplayer.cpp
parent41ac086fcd38fd472b579a495a8e8e7685ae4722 (diff)
downloadplus-964ffbb9b6ed5246b14a7d0c0d065f7d38af0912.tar.gz
plus-964ffbb9b6ed5246b14a7d0c0d065f7d38af0912.tar.bz2
plus-964ffbb9b6ed5246b14a7d0c0d065f7d38af0912.tar.xz
plus-964ffbb9b6ed5246b14a7d0c0d065f7d38af0912.zip
Fix some warnings and improve code from gcc 4.6 compilation.
Diffstat (limited to 'src/localplayer.cpp')
-rw-r--r--src/localplayer.cpp13
1 files changed, 10 insertions, 3 deletions
diff --git a/src/localplayer.cpp b/src/localplayer.cpp
index 564c28f78..0533290b3 100644
--- a/src/localplayer.cpp
+++ b/src/localplayer.cpp
@@ -1173,9 +1173,16 @@ bool LocalPlayer::toggleSit()
Being::Action newAction;
switch (mAction)
{
- case STAND: newAction = SIT; break;
- case SIT: newAction = STAND; break;
- default: return true;
+ case STAND: newAction = SIT;
+ break;
+ case SIT: newAction = STAND;
+ break;
+ case MOVE:
+ case ATTACK:
+ case DEAD:
+ case HURT:
+ default:
+ return true;
}
Net::getPlayerHandler()->changeAction(newAction);