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/being.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/being.cpp')
-rw-r--r-- | src/being/being.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/being/being.cpp b/src/being/being.cpp index e43b71600..be998d05d 100644 --- a/src/being/being.cpp +++ b/src/being/being.cpp @@ -388,7 +388,7 @@ void Being::setSubtype(const BeingTypeId subtype, setName(mInfo->getName()); setupSpriteDisplay(mInfo->getDisplay(), ForceDisplay_true, - 0, + DisplayType::Item, mInfo->getColor(fromInt(mLook, ItemColor))); mYDiff = mInfo->getSortOffsetY(); } @@ -400,7 +400,7 @@ void Being::setSubtype(const BeingTypeId subtype, setName(mInfo->getName()); setupSpriteDisplay(mInfo->getDisplay(), ForceDisplay_true, - 0, + DisplayType::Item, mInfo->getColor(fromInt(mLook, ItemColor))); mYDiff = mInfo->getSortOffsetY(); } @@ -412,7 +412,7 @@ void Being::setSubtype(const BeingTypeId subtype, setName(mInfo->getName()); setupSpriteDisplay(mInfo->getDisplay(), ForceDisplay_true, - 0, + DisplayType::Item, mInfo->getColor(fromInt(mLook, ItemColor))); mYDiff = mInfo->getSortOffsetY(); } @@ -424,7 +424,7 @@ void Being::setSubtype(const BeingTypeId subtype, setName(mInfo->getName()); setupSpriteDisplay(mInfo->getDisplay(), ForceDisplay_true, - 0, + DisplayType::Item, mInfo->getColor(fromInt(mLook, ItemColor))); mYDiff = mInfo->getSortOffsetY(); } @@ -436,7 +436,7 @@ void Being::setSubtype(const BeingTypeId subtype, setName(mInfo->getName()); setupSpriteDisplay(mInfo->getDisplay(), ForceDisplay_false, - 0, + DisplayType::Item, mInfo->getColor(fromInt(mLook, ItemColor))); mYDiff = mInfo->getSortOffsetY(); } @@ -448,7 +448,7 @@ void Being::setSubtype(const BeingTypeId subtype, setName(mInfo->getName()); setupSpriteDisplay(mInfo->getDisplay(), ForceDisplay_false, - 0, + DisplayType::Item, mInfo->getColor(fromInt(mLook, ItemColor))); mYDiff = mInfo->getSortOffsetY(); } @@ -459,7 +459,7 @@ void Being::setSubtype(const BeingTypeId subtype, { setupSpriteDisplay(mInfo->getDisplay(), ForceDisplay_false, - 0, + DisplayType::Item, std::string()); mYDiff = mInfo->getSortOffsetY(); } @@ -470,7 +470,7 @@ void Being::setSubtype(const BeingTypeId subtype, { setupSpriteDisplay(mInfo->getDisplay(), ForceDisplay_false, - 0, + DisplayType::Item, std::string()); } break; |