diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-05-24 01:20:43 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-05-24 01:20:43 +0300 |
commit | a3360d4c38e8dd43d6e71cc4bd38f8dc96040b2e (patch) | |
tree | 44306e2fb7f38c44ca9ca89a9e21a76b912169ca /src/textcommand.cpp | |
parent | 2bcfc80fe18a7239e2eae5600e4ed118e038da32 (diff) | |
download | manaplus-a3360d4c38e8dd43d6e71cc4bd38f8dc96040b2e.tar.gz manaplus-a3360d4c38e8dd43d6e71cc4bd38f8dc96040b2e.tar.bz2 manaplus-a3360d4c38e8dd43d6e71cc4bd38f8dc96040b2e.tar.xz manaplus-a3360d4c38e8dd43d6e71cc4bd38f8dc96040b2e.zip |
Dehardcode some old paths.
Diffstat (limited to 'src/textcommand.cpp')
-rw-r--r-- | src/textcommand.cpp | 5 |
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"); |