diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-08-22 01:45:59 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-08-22 01:45:59 +0300 |
commit | ad56ac4bda60beddf33640df346801af1ece9ccf (patch) | |
tree | 80b27c32a9e954dd747e261d4f7617e4c959bb26 /src/being/actorsprite.cpp | |
parent | c0b08d3f4f554c16e9a3599f1f1063c3a283bb93 (diff) | |
download | plus-ad56ac4bda60beddf33640df346801af1ece9ccf.tar.gz plus-ad56ac4bda60beddf33640df346801af1ece9ccf.tar.bz2 plus-ad56ac4bda60beddf33640df346801af1ece9ccf.tar.xz plus-ad56ac4bda60beddf33640df346801af1ece9ccf.zip |
Add strong typed enum DisplayType.
Diffstat (limited to 'src/being/actorsprite.cpp')
-rw-r--r-- | src/being/actorsprite.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/being/actorsprite.cpp b/src/being/actorsprite.cpp index 6c2c99a40..6594c7e3c 100644 --- a/src/being/actorsprite.cpp +++ b/src/being/actorsprite.cpp @@ -429,7 +429,7 @@ void ActorSprite::handleStatusEffect(const StatusEffect *const effect, void ActorSprite::setupSpriteDisplay(const SpriteDisplay &display, const ForceDisplay forceDisplay, - const int imageType, + const DisplayTypeT displayType, const std::string &color) { clear(); @@ -457,14 +457,14 @@ void ActorSprite::setupSpriteDisplay(const SpriteDisplay &display, else { std::string imagePath; - switch (imageType) + switch (displayType) { - case 0: + case DisplayType::Item: default: imagePath = pathJoin(paths.getStringValue("itemIcons"), display.image); break; - case 1: + case DisplayType::Floor: imagePath = pathJoin(paths.getStringValue("itemIcons"), display.floor); break; |