summaryrefslogtreecommitdiff
path: root/src/localplayer.cpp
diff options
context:
space:
mode:
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);