summaryrefslogtreecommitdiff
path: root/src/statuseffect.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/statuseffect.cpp
parent793e570728840dd788f9104e54828c1530016d61 (diff)
downloadplus-1a9330a5f6cd753b4155ac74db104cb0ffa095c9.tar.gz
plus-1a9330a5f6cd753b4155ac74db104cb0ffa095c9.tar.bz2
plus-1a9330a5f6cd753b4155ac74db104cb0ffa095c9.tar.xz
plus-1a9330a5f6cd753b4155ac74db104cb0ffa095c9.zip
Allow open cart window only if cart status effect enabled.
Diffstat (limited to 'src/statuseffect.cpp')
-rw-r--r--src/statuseffect.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/statuseffect.cpp b/src/statuseffect.cpp
index b9499fc2e..987529631 100644
--- a/src/statuseffect.cpp
+++ b/src/statuseffect.cpp
@@ -49,7 +49,8 @@ StatusEffect::StatusEffect() :
mIcon(),
mAction(),
mPersistentParticleEffect(false),
- mIsPoison(false)
+ mIsPoison(false),
+ mIsCart(false)
{
}
@@ -198,6 +199,8 @@ void StatusEffect::loadXmlFile(const std::string &fileName)
startEffect->mIsPoison =
(name == paths.getStringValue("poisonEffectName"));
+ startEffect->mIsCart =
+ (name == paths.getStringValue("cartEffectName"));
startEffect->mMessage = XML::getProperty(
node, "start-message", "");
startEffect->mSFXEffect = XML::getProperty(