summaryrefslogtreecommitdiff
path: root/src/being/localplayer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/being/localplayer.cpp')
-rw-r--r--src/being/localplayer.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/being/localplayer.cpp b/src/being/localplayer.cpp
index e2450610c..ec62fe735 100644
--- a/src/being/localplayer.cpp
+++ b/src/being/localplayer.cpp
@@ -2703,3 +2703,10 @@ void LocalPlayer::playerDeath()
recalcSpritesOrder();
}
}
+
+bool LocalPlayer::canMove() const
+{
+ return mAction != BeingAction::DEAD &&
+ (serverFeatures->haveMoveWhileSit() ||
+ mAction != BeingAction::SIT);
+}