From 5711dc9a0c1952f2d523bc6c6106d8ef3b47a201 Mon Sep 17 00:00:00 2001 From: Yohann Ferreira Date: Fri, 30 Jul 2010 00:42:42 +0200 Subject: Fixed two more forgotten hard-coded references. --- src/being.cpp | 7 +++---- src/gui/skilldialog.cpp | 4 +++- 2 files changed, 6 insertions(+), 5 deletions(-) (limited to 'src') diff --git a/src/being.cpp b/src/being.cpp index 1061cf36..22fb9610 100644 --- a/src/being.cpp +++ b/src/being.cpp @@ -74,7 +74,6 @@ #include #define HAIR_FILE "hair.xml" -#define PARTICLE_LOCATION "graphics/particles/" static const int DEFAULT_BEING_WIDTH = 32; static const int DEFAULT_BEING_HEIGHT = 32; @@ -815,9 +814,9 @@ void Being::logic() if (!particleEffect.empty() && findSameSubstring(particleEffect, - PARTICLE_LOCATION).empty()) - particleEffect = PARTICLE_LOCATION + - particleEffect; + paths.getStringValue("particles")).empty()) + particleEffect = paths.getStringValue("particles") + + particleEffect; } else { diff --git a/src/gui/skilldialog.cpp b/src/gui/skilldialog.cpp index ccf4b418..c990274a 100644 --- a/src/gui/skilldialog.cpp +++ b/src/gui/skilldialog.cpp @@ -23,6 +23,7 @@ #include "log.h" #include "playerinfo.h" +#include "configuration.h" #include "gui/setup.h" #include "gui/theme.h" @@ -87,7 +88,8 @@ struct SkillInfo } else { - icon = Theme::getImageFromTheme("unknown-item.png"); + icon = Theme::getImageFromTheme( + paths.getStringValue("unknownItemFile")); } } -- cgit v1.2.3-70-g09d2