diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-01-26 13:30:24 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-01-26 13:30:24 +0300 |
commit | 1a9330a5f6cd753b4155ac74db104cb0ffa095c9 (patch) | |
tree | d3d24cfc1101b99e2055a9330b2e31522512f0c3 /src/statuseffect.cpp | |
parent | 793e570728840dd788f9104e54828c1530016d61 (diff) | |
download | manaplus-1a9330a5f6cd753b4155ac74db104cb0ffa095c9.tar.gz manaplus-1a9330a5f6cd753b4155ac74db104cb0ffa095c9.tar.bz2 manaplus-1a9330a5f6cd753b4155ac74db104cb0ffa095c9.tar.xz manaplus-1a9330a5f6cd753b4155ac74db104cb0ffa095c9.zip |
Allow open cart window only if cart status effect enabled.
Diffstat (limited to 'src/statuseffect.cpp')
-rw-r--r-- | src/statuseffect.cpp | 5 |
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( |