summaryrefslogtreecommitdiff
path: root/src/being/actorsprite.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-01-26 13:30:24 +0300
committerAndrei Karas <akaras@inbox.ru>2015-01-26 13:30:24 +0300
commit1a9330a5f6cd753b4155ac74db104cb0ffa095c9 (patch)
treed3d24cfc1101b99e2055a9330b2e31522512f0c3 /src/being/actorsprite.cpp
parent793e570728840dd788f9104e54828c1530016d61 (diff)
downloadmv-1a9330a5f6cd753b4155ac74db104cb0ffa095c9.tar.gz
mv-1a9330a5f6cd753b4155ac74db104cb0ffa095c9.tar.bz2
mv-1a9330a5f6cd753b4155ac74db104cb0ffa095c9.tar.xz
mv-1a9330a5f6cd753b4155ac74db104cb0ffa095c9.zip
Allow open cart window only if cart status effect enabled.
Diffstat (limited to 'src/being/actorsprite.cpp')
-rw-r--r--src/being/actorsprite.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/being/actorsprite.cpp b/src/being/actorsprite.cpp
index b6c4ea360..a2e7524cc 100644
--- a/src/being/actorsprite.cpp
+++ b/src/being/actorsprite.cpp
@@ -72,7 +72,8 @@ ActorSprite::ActorSprite(const int id) :
mCursorPaddingX(0),
mCursorPaddingY(0),
mMustResetParticles(false),
- mPoison(false)
+ mPoison(false),
+ mHaveCart(false)
{
}
@@ -219,6 +220,8 @@ void ActorSprite::updateStatusEffect(const int index, const bool newStatus)
return;
if (effect->isPoison() && getType() == ActorType::Player)
setPoison(newStatus);
+ if (localPlayer == this)
+ setHaveCart(newStatus);
handleStatusEffect(effect, index);
}