summaryrefslogtreecommitdiff
path: root/src/being/being.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-03-03 18:36:32 +0300
committerAndrei Karas <akaras@inbox.ru>2015-03-03 18:36:32 +0300
commit6bb63b931d7a141aa1483a09941fe9f81974faa4 (patch)
tree92e101b95b037db9895d5c3f37e435c724d221ed /src/being/being.cpp
parent975f12cdaa4bba66c0e1e18aa3d638f3ae8cad76 (diff)
downloadplus-6bb63b931d7a141aa1483a09941fe9f81974faa4.tar.gz
plus-6bb63b931d7a141aa1483a09941fe9f81974faa4.tar.bz2
plus-6bb63b931d7a141aa1483a09941fe9f81974faa4.tar.xz
plus-6bb63b931d7a141aa1483a09941fe9f81974faa4.zip
Update sprite on changing riding mode.
Diffstat (limited to 'src/being/being.cpp')
-rw-r--r--src/being/being.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/being/being.cpp b/src/being/being.cpp
index 62eded545..8143f1c90 100644
--- a/src/being/being.cpp
+++ b/src/being/being.cpp
@@ -3570,3 +3570,11 @@ bool Being::isSellShopEnabled() const
{
return mShop && (!serverFeatures->haveVending() || !mSellBoard.empty());
}
+
+void Being::setRiding(const bool b)
+{
+ if (b == mRiding)
+ return;
+ mRiding = b;
+ setAction(mAction, 0);
+}