summaryrefslogtreecommitdiff
path: root/src/being/actorsprite.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-10-08 20:35:49 +0300
committerAndrei Karas <akaras@inbox.ru>2013-10-08 20:35:49 +0300
commita096b29db464950774e3f93c75b0f6b7e19e7aca (patch)
tree7454a7e66f561c73a62cbb44879ee49baf00761e /src/being/actorsprite.cpp
parent9a0da2510f9eed57e4bc974084bf54832ee4c33c (diff)
downloadmv-a096b29db464950774e3f93c75b0f6b7e19e7aca.tar.gz
mv-a096b29db464950774e3f93c75b0f6b7e19e7aca.tar.bz2
mv-a096b29db464950774e3f93c75b0f6b7e19e7aca.tar.xz
mv-a096b29db464950774e3f93c75b0f6b7e19e7aca.zip
fix target cursor loading in not default themes.
Diffstat (limited to 'src/being/actorsprite.cpp')
-rw-r--r--src/being/actorsprite.cpp11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/being/actorsprite.cpp b/src/being/actorsprite.cpp
index 66b2b9f17..162d5d661 100644
--- a/src/being/actorsprite.cpp
+++ b/src/being/actorsprite.cpp
@@ -361,17 +361,18 @@ static const char *cursorSize(const int size)
void ActorSprite::initTargetCursor()
{
- static const std::string targetCursorFile("%s/target-cursor-%s-%s.xml");
- const std::string path(Theme::getThemePath());
+ static const std::string targetCursorFile("target-cursor-%s-%s.xml");
// Load target cursors
for (int size = TC_SMALL; size < NUM_TC; size++)
{
for (int type = TCT_NORMAL; type < NUM_TCT; type++)
{
- targetCursor[type][size] = AnimatedSprite::load(strprintf(
- targetCursorFile.c_str(), path.c_str(), cursorType(type),
- cursorSize(size)));
+ targetCursor[type][size] = AnimatedSprite::load(
+ Theme::resolveThemePath(strprintf(
+ targetCursorFile.c_str(),
+ cursorType(type),
+ cursorSize(size))));
}
}
}