diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-02-07 16:18:13 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-02-07 16:18:13 +0300 |
commit | 9fe21fcd8883b37bdc30224822e6e42afb35b8f0 (patch) | |
tree | 798117abd4dc7e610997d59d530a96ddc1509f53 /src/being/being.h | |
parent | 4429cb14e9e187edef27aba692a4266733f79c17 (diff) | |
download | plus-9fe21fcd8883b37bdc30224822e6e42afb35b8f0.tar.gz plus-9fe21fcd8883b37bdc30224822e6e42afb35b8f0.tar.bz2 plus-9fe21fcd8883b37bdc30224822e6e42afb35b8f0.tar.xz plus-9fe21fcd8883b37bdc30224822e6e42afb35b8f0.zip |
Replace most static_cast<Type> to shorter versions from defines.
Diffstat (limited to 'src/being/being.h')
-rw-r--r-- | src/being/being.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/being/being.h b/src/being/being.h index c91cac5b9..ee073977b 100644 --- a/src/being/being.h +++ b/src/being/being.h @@ -286,7 +286,7 @@ class Being notfinal : public ActorSprite, * Get number of guilds the being belongs to. */ int16_t getNumberOfGuilds() const restrict2 A_WARN_UNUSED - { return static_cast<int16_t>(mGuilds.size()); } + { return CAST_S16(mGuilds.size()); } bool isInParty() const restrict2 noexcept A_WARN_UNUSED { return mParty; } @@ -301,7 +301,7 @@ class Being notfinal : public ActorSprite, { return mParty; } int getSpritesCount() const restrict2 A_WARN_UNUSED - { return static_cast<int>(size()); } + { return CAST_S32(size()); } /** * Sets visible equipments for this being. @@ -891,8 +891,8 @@ class Being notfinal : public ActorSprite, void setPath(const Path &restrict path) restrict2; int getSortPixelY() const restrict2 override A_WARN_UNUSED - { return static_cast<int>(mPos.y) - mYDiff - mSortOffsetY; } -// { return static_cast<int>(mPos.y) - mYDiff - mSortOffsetY + 16; } + { return CAST_S32(mPos.y) - mYDiff - mSortOffsetY; } +// { return CAST_S32(mPos.y) - mYDiff - mSortOffsetY + 16; } void setMap(Map *restrict const map) restrict2 override; |