summaryrefslogtreecommitdiff
path: root/src/actorsprite.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/actorsprite.cpp')
-rw-r--r--src/actorsprite.cpp12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/actorsprite.cpp b/src/actorsprite.cpp
index 267392a6c..4611ddbd2 100644
--- a/src/actorsprite.cpp
+++ b/src/actorsprite.cpp
@@ -23,6 +23,7 @@
#include "actorspritelistener.h"
#include "client.h"
+#include "configuration.h"
#include "effectmanager.h"
#include "imagesprite.h"
#include "localplayer.h"
@@ -328,7 +329,7 @@ void ActorSprite::setupSpriteDisplay(const SpriteDisplay &display,
{
if (!*it)
continue;
- std::string file = "graphics/sprites/"
+ std::string file = paths.getStringValue("sprites")
+ combineDye2((*it)->sprite, color);
int variant = (*it)->variant;
@@ -340,7 +341,8 @@ void ActorSprite::setupSpriteDisplay(const SpriteDisplay &display,
{
if (display.image.empty())
{
- addSprite(AnimatedSprite::load("graphics/sprites/error.xml"));
+ addSprite(AnimatedSprite::load(paths.getStringValue("sprites")
+ + paths.getStringValue("spriteErrorFile")));
}
else
{
@@ -350,10 +352,12 @@ void ActorSprite::setupSpriteDisplay(const SpriteDisplay &display,
{
case 0:
default:
- imagePath = "graphics/items/" + display.image;
+ imagePath = paths.getStringValue("itemIcons")
+ + display.image;
break;
case 1:
- imagePath = "graphics/items/" + display.floor;
+ imagePath = paths.getStringValue("itemIcons")
+ + display.floor;
break;
}
imagePath = combineDye2(imagePath, color);