diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-05-13 12:56:09 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-05-13 12:56:09 +0300 |
commit | 7b4b302ffe79cdba0fa35b66741a9d6c3d9184f2 (patch) | |
tree | 1be01271ab942e0e6e321fa2ce45a6b527f97b07 /src/resources/beinginfo.cpp | |
parent | ea0b61e18f36f28806940b00a2cddaef912c3340 (diff) | |
download | plus-7b4b302ffe79cdba0fa35b66741a9d6c3d9184f2.tar.gz plus-7b4b302ffe79cdba0fa35b66741a9d6c3d9184f2.tar.bz2 plus-7b4b302ffe79cdba0fa35b66741a9d6c3d9184f2.tar.xz plus-7b4b302ffe79cdba0fa35b66741a9d6c3d9184f2.zip |
Move targetcursorsize into separate file.
Diffstat (limited to 'src/resources/beinginfo.cpp')
-rw-r--r-- | src/resources/beinginfo.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/resources/beinginfo.cpp b/src/resources/beinginfo.cpp index f13055b49..5cf6b2397 100644 --- a/src/resources/beinginfo.cpp +++ b/src/resources/beinginfo.cpp @@ -42,7 +42,7 @@ BeingInfo::BeingInfo() : mDisplay(), // TRANSLATORS: being info default name mName(_("unnamed")), - mTargetCursorSize(ActorSprite::TC_MEDIUM), + mTargetCursorSize(TargetCursorSize::MEDIUM), mHoverCursor(Cursor::CURSOR_POINTER), mSounds(), mAttacks(), @@ -106,21 +106,21 @@ void BeingInfo::setTargetCursorSize(const std::string &size) { if (size == "small") { - setTargetCursorSize(ActorSprite::TC_SMALL); + setTargetCursorSize(TargetCursorSize::SMALL); } else if (size == "medium") { - setTargetCursorSize(ActorSprite::TC_MEDIUM); + setTargetCursorSize(TargetCursorSize::MEDIUM); } else if (size == "large") { - setTargetCursorSize(ActorSprite::TC_LARGE); + setTargetCursorSize(TargetCursorSize::LARGE); } else { logger->log("Unknown target cursor type \"%s\" for %s - using medium " "sized one", size.c_str(), getName().c_str()); - setTargetCursorSize(ActorSprite::TC_MEDIUM); + setTargetCursorSize(TargetCursorSize::MEDIUM); } } |