summaryrefslogtreecommitdiff
path: root/src/being/actorsprite.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-05-30 00:27:14 +0300
committerAndrei Karas <akaras@inbox.ru>2015-05-30 00:27:14 +0300
commit478ffec82dae4f55c38ccd424079166ec8c38905 (patch)
tree96f9c597164c4bed24b5ab2040dcfffd1df624d7 /src/being/actorsprite.h
parent67dd1ac770ed04fc7cbbbaa160c00f648d490858 (diff)
downloadplus-478ffec82dae4f55c38ccd424079166ec8c38905.tar.gz
plus-478ffec82dae4f55c38ccd424079166ec8c38905.tar.bz2
plus-478ffec82dae4f55c38ccd424079166ec8c38905.tar.xz
plus-478ffec82dae4f55c38ccd424079166ec8c38905.zip
Convert TargetCursorSize enum into strong typed enum.
Diffstat (limited to 'src/being/actorsprite.h')
-rw-r--r--src/being/actorsprite.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/being/actorsprite.h b/src/being/actorsprite.h
index 97553171a..9ba16a64c 100644
--- a/src/being/actorsprite.h
+++ b/src/being/actorsprite.h
@@ -90,8 +90,7 @@ class ActorSprite notfinal : public CompoundSprite, public Actor
/**
* Returns the required size of a target cursor for this being.
*/
- virtual TargetCursorSize::Size getTargetCursorSize() const
- A_WARN_UNUSED
+ virtual TargetCursorSizeT getTargetCursorSize() const A_WARN_UNUSED
{ return TargetCursorSize::MEDIUM; }
virtual int getTargetOffsetX() const A_WARN_UNUSED
@@ -216,7 +215,7 @@ class ActorSprite notfinal : public CompoundSprite, public Actor
/** Animated target cursors. */
static AnimatedSprite *targetCursor[TargetCursorType::NUM_TCT]
- [TargetCursorSize::NUM_TC];
+ [static_cast<size_t>(TargetCursorSize::NUM_TC)];
static bool loaded;