summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorYohann Ferreira <yohann_dot_ferreira_at_orange_dot_efer>2010-07-30 00:42:42 +0200
committerYohann Ferreira <yohann_dot_ferreira_at_orange_dot_efer>2010-07-30 00:42:42 +0200
commit5711dc9a0c1952f2d523bc6c6106d8ef3b47a201 (patch)
tree85f3bd0fc6705c2c5f6c61f953e330c963fbfdac /src
parent4cd89f7fc9a3846e9d42b1d401453b8b55a2990f (diff)
downloadmana-client-5711dc9a0c1952f2d523bc6c6106d8ef3b47a201.tar.gz
mana-client-5711dc9a0c1952f2d523bc6c6106d8ef3b47a201.tar.bz2
mana-client-5711dc9a0c1952f2d523bc6c6106d8ef3b47a201.tar.xz
mana-client-5711dc9a0c1952f2d523bc6c6106d8ef3b47a201.zip
Fixed two more forgotten hard-coded references.
Diffstat (limited to 'src')
-rw-r--r--src/being.cpp7
-rw-r--r--src/gui/skilldialog.cpp4
2 files changed, 6 insertions, 5 deletions
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 <cmath>
#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"));
}
}