summaryrefslogtreecommitdiff
path: root/src/textcommand.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-05-24 01:20:43 +0300
committerAndrei Karas <akaras@inbox.ru>2012-05-24 01:20:43 +0300
commita3360d4c38e8dd43d6e71cc4bd38f8dc96040b2e (patch)
tree44306e2fb7f38c44ca9ca89a9e21a76b912169ca /src/textcommand.cpp
parent2bcfc80fe18a7239e2eae5600e4ed118e038da32 (diff)
downloadmv-a3360d4c38e8dd43d6e71cc4bd38f8dc96040b2e.tar.gz
mv-a3360d4c38e8dd43d6e71cc4bd38f8dc96040b2e.tar.bz2
mv-a3360d4c38e8dd43d6e71cc4bd38f8dc96040b2e.tar.xz
mv-a3360d4c38e8dd43d6e71cc4bd38f8dc96040b2e.zip
Dehardcode some old paths.
Diffstat (limited to 'src/textcommand.cpp')
-rw-r--r--src/textcommand.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/textcommand.cpp b/src/textcommand.cpp
index ec9e97f61..2ca1e3996 100644
--- a/src/textcommand.cpp
+++ b/src/textcommand.cpp
@@ -22,6 +22,8 @@
#include "textcommand.h"
+#include "configuration.h"
+
#include "gui/theme.h"
#include "resources/image.h"
@@ -111,7 +113,8 @@ void TextCommand::loadImage()
ResourceManager *resman = ResourceManager::getInstance();
SpriteDisplay display = ItemDB::get(getIcon()).getDisplay();
- mImage = resman->getImage("graphics/items/" + display.image);
+ mImage = resman->getImage(paths.getStringValue("itemIcons")
+ + display.image);
if (!mImage)
mImage = Theme::getImageFromTheme("unknown-item.png");