diff options
-rw-r--r-- | src/being.cpp | 7 | ||||
-rw-r--r-- | src/gui/skilldialog.cpp | 4 |
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")); } } |