From c0b08d3f4f554c16e9a3599f1f1063c3a283bb93 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 22 Aug 2017 01:22:47 +0300 Subject: Remove default parameters from ActorSprite::setupSpriteDisplay. --- src/being/actorsprite.h | 7 +++---- src/being/being.cpp | 12 ++++++++++-- 2 files changed, 13 insertions(+), 6 deletions(-) (limited to 'src/being') diff --git a/src/being/actorsprite.h b/src/being/actorsprite.h index 75df5342e..ff413f040 100644 --- a/src/being/actorsprite.h +++ b/src/being/actorsprite.h @@ -227,10 +227,9 @@ class ActorSprite notfinal : public CompoundSprite, public Actor const IsStart start); void setupSpriteDisplay(const SpriteDisplay &display, - const ForceDisplay forceDisplay - = ForceDisplay_true, - const int imageType = 0, - const std::string &color = ""); + const ForceDisplay forceDisplay, + const int imageType, + const std::string &color); /** Load the target cursors into memory */ static void initTargetCursor(); diff --git a/src/being/being.cpp b/src/being/being.cpp index 914462892..e43b71600 100644 --- a/src/being/being.cpp +++ b/src/being/being.cpp @@ -457,14 +457,22 @@ void Being::setSubtype(const BeingTypeId subtype, mInfo = NPCDB::get(mSubType); if (mInfo != nullptr) { - setupSpriteDisplay(mInfo->getDisplay(), ForceDisplay_false); + setupSpriteDisplay(mInfo->getDisplay(), + ForceDisplay_false, + 0, + std::string()); mYDiff = mInfo->getSortOffsetY(); } break; case ActorType::Avatar: mInfo = AvatarDB::get(mSubType); if (mInfo != nullptr) - setupSpriteDisplay(mInfo->getDisplay(), ForceDisplay_false); + { + setupSpriteDisplay(mInfo->getDisplay(), + ForceDisplay_false, + 0, + std::string()); + } break; case ActorType::Player: { -- cgit v1.2.3-70-g09d2