diff options
author | Andrei Karas <akaras@inbox.ru> | 2018-11-26 00:51:57 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2018-11-27 20:33:15 +0300 |
commit | 0c20db8d108c4123fcc3ecb343759e68567a4d4e (patch) | |
tree | f577edeae7b4866d68c084a1eaa229e98c80ea8f /src/resources/sprite | |
parent | 2be4fc5b4eee97938657c9c8be73c4b91c8b9826 (diff) | |
download | manaplus-0c20db8d108c4123fcc3ecb343759e68567a4d4e.tar.gz manaplus-0c20db8d108c4123fcc3ecb343759e68567a4d4e.tar.bz2 manaplus-0c20db8d108c4123fcc3ecb343759e68567a4d4e.tar.xz manaplus-0c20db8d108c4123fcc3ecb343759e68567a4d4e.zip |
Remove extra ; from different code.
Diffstat (limited to 'src/resources/sprite')
-rw-r--r-- | src/resources/sprite/animatedsprite.cpp | 2 | ||||
-rw-r--r-- | src/resources/sprite/spritedef.cpp | 28 |
2 files changed, 15 insertions, 15 deletions
diff --git a/src/resources/sprite/animatedsprite.cpp b/src/resources/sprite/animatedsprite.cpp index 965cffbec..9e6e2e327 100644 --- a/src/resources/sprite/animatedsprite.cpp +++ b/src/resources/sprite/animatedsprite.cpp @@ -134,7 +134,7 @@ AnimatedSprite::~AnimatedSprite() { mDelayLoad->clearSprite(); DelayedManager::removeDelayLoad(mDelayLoad); - delete2(mDelayLoad); + delete2(mDelayLoad) } } diff --git a/src/resources/sprite/spritedef.cpp b/src/resources/sprite/spritedef.cpp index b2a53fd93..1e38c4ca5 100644 --- a/src/resources/sprite/spritedef.cpp +++ b/src/resources/sprite/spritedef.cpp @@ -105,7 +105,7 @@ SpriteDef *SpriteDef::load(const std::string &animationFile, if ((rootNode == nullptr) || !xmlNameEqual(rootNode, "sprite")) { reportAlways("Error, failed to parse sprite %s", - animationFile.c_str()); + animationFile.c_str()) const std::string errorFile = pathJoin(paths.getStringValue("sprites"), paths.getStringValue("spriteErrorFile")); BLOCK_END("SpriteDef::load") @@ -256,7 +256,7 @@ void SpriteDef::loadImageSet(XmlNodeConstPtr node, { reportAlways("%s: Couldn't load imageset: %s", mSource.c_str(), - imageSrc.c_str()); + imageSrc.c_str()) return; } @@ -273,7 +273,7 @@ const ImageSet *SpriteDef::getImageSet(const std::string &imageSetName) const reportAlways("%s: Imageset \"%s\" not defined in %s", mSource.c_str(), imageSetName.c_str(), - mIdPath.c_str()); + mIdPath.c_str()) return nullptr; } return si->second; @@ -295,7 +295,7 @@ void SpriteDef::loadAction(XmlNodeConstPtr node, reportAlways("%s: Unknown action \"%s\" defined in %s", mSource.c_str(), actionName.c_str(), - mIdPath.c_str()); + mIdPath.c_str()) return; } Action *const action = new Action(actionName); @@ -305,7 +305,7 @@ void SpriteDef::loadAction(XmlNodeConstPtr node, // dirty hack to fix bad resources in tmw server if (actionName == "attack_stab") { - reportAlways("Found legacy attribute attack_stab in animation"); + reportAlways("Found legacy attribute attack_stab in animation") addAction(hp, "attack", action); } @@ -345,7 +345,7 @@ void SpriteDef::loadAnimation(XmlNodeConstPtr animationNode, reportAlways("%s: Unknown direction \"%s\" used in %s", mSource.c_str(), directionName.c_str(), - mIdPath.c_str()); + mIdPath.c_str()) return; } @@ -383,7 +383,7 @@ void SpriteDef::loadAnimation(XmlNodeConstPtr animationNode, reportAlways( "%s: No valid value for 'index' at direction '%s'", mSource.c_str(), - directionName.c_str()); + directionName.c_str()) continue; } @@ -393,7 +393,7 @@ void SpriteDef::loadAnimation(XmlNodeConstPtr animationNode, reportAlways("%s: No image at index %d at direction '%s'", mSource.c_str(), index + variant_offset, - directionName.c_str()); + directionName.c_str()) continue; } @@ -411,7 +411,7 @@ void SpriteDef::loadAnimation(XmlNodeConstPtr animationNode, { reportAlways("%s: No valid value for 'repeat' at direction %s", mSource.c_str(), - directionName.c_str()); + directionName.c_str()) continue; } @@ -495,7 +495,7 @@ void SpriteDef::includeSprite(XmlNodeConstPtr includeNode, const int variant) { reportAlways("%s: Tried to include %s which already is included.", mSource.c_str(), - filename.c_str()); + filename.c_str()) return; } mProcessedFiles.insert(filename); @@ -511,7 +511,7 @@ void SpriteDef::includeSprite(XmlNodeConstPtr includeNode, const int variant) { reportAlways("%s: No sprite root node in %s", mSource.c_str(), - filename.c_str()); + filename.c_str()) doc->decRef(); return; } @@ -599,7 +599,7 @@ bool SpriteDef::addSequence(const int start, if (start < 0 || end < 0) { reportAlways("%s: No valid value for 'start' or 'end'", - mSource.c_str()); + mSource.c_str()) return true; } @@ -616,7 +616,7 @@ bool SpriteDef::addSequence(const int start, { reportAlways("%s: No image at index %d", mSource.c_str(), - pos + variant_offset); + pos + variant_offset) pos ++; continue; } @@ -641,7 +641,7 @@ bool SpriteDef::addSequence(const int start, { reportAlways("%s: No image at index %d", mSource.c_str(), - pos + variant_offset); + pos + variant_offset) pos ++; continue; } |