diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-02-25 03:35:52 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-02-25 03:35:52 +0300 |
commit | 8478d540748edccf36dc9bda5f0c3de0aa7bf763 (patch) | |
tree | 941a08937450982abb8781e8dd4bd4bd209cf88c /src/actorsprite.cpp | |
parent | 6ce49efadfadd8eacb048df274979736bb04daf0 (diff) | |
download | manaverse-8478d540748edccf36dc9bda5f0c3de0aa7bf763.tar.gz manaverse-8478d540748edccf36dc9bda5f0c3de0aa7bf763.tar.bz2 manaverse-8478d540748edccf36dc9bda5f0c3de0aa7bf763.tar.xz manaverse-8478d540748edccf36dc9bda5f0c3de0aa7bf763.zip |
Improve string usage in other files.
Diffstat (limited to 'src/actorsprite.cpp')
-rw-r--r-- | src/actorsprite.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/actorsprite.cpp b/src/actorsprite.cpp index 96afb94c7..ac2d6bf7b 100644 --- a/src/actorsprite.cpp +++ b/src/actorsprite.cpp @@ -333,8 +333,8 @@ void ActorSprite::setupSpriteDisplay(const SpriteDisplay &display, { if (!*it) continue; - const std::string file = paths.getStringValue("sprites") - + combineDye2((*it)->sprite, color); + const std::string file = paths.getStringValue("sprites").append( + combineDye2((*it)->sprite, color)); const int variant = (*it)->variant; addSprite(AnimatedSprite::delayedLoad(file, variant)); @@ -346,8 +346,8 @@ void ActorSprite::setupSpriteDisplay(const SpriteDisplay &display, if (display.image.empty()) { addSprite(AnimatedSprite::delayedLoad( - paths.getStringValue("sprites") - + paths.getStringValue("spriteErrorFile"))); + paths.getStringValue("sprites").append( + paths.getStringValue("spriteErrorFile")))); } else { @@ -357,12 +357,12 @@ void ActorSprite::setupSpriteDisplay(const SpriteDisplay &display, { case 0: default: - imagePath = paths.getStringValue("itemIcons") - + display.image; + imagePath = paths.getStringValue("itemIcons").append( + display.image); break; case 1: - imagePath = paths.getStringValue("itemIcons") - + display.floor; + imagePath = paths.getStringValue("itemIcons").append( + display.floor); break; } imagePath = combineDye2(imagePath, color); |