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/actor.h | |
parent | 4429cb14e9e187edef27aba692a4266733f79c17 (diff) | |
download | manaverse-9fe21fcd8883b37bdc30224822e6e42afb35b8f0.tar.gz manaverse-9fe21fcd8883b37bdc30224822e6e42afb35b8f0.tar.bz2 manaverse-9fe21fcd8883b37bdc30224822e6e42afb35b8f0.tar.xz manaverse-9fe21fcd8883b37bdc30224822e6e42afb35b8f0.zip |
Replace most static_cast<Type> to shorter versions from defines.
Diffstat (limited to 'src/being/actor.h')
-rw-r--r-- | src/being/actor.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/being/actor.h b/src/being/actor.h index ab79c6935..3e004c419 100644 --- a/src/being/actor.h +++ b/src/being/actor.h @@ -83,19 +83,19 @@ class Actor notfinal * Returns the pixels X coordinate of the actor. */ int getPixelX() const A_WARN_UNUSED - { return static_cast<int>(mPos.x); } + { return CAST_S32(mPos.x); } /** * Returns the pixel Y coordinate of the actor. */ virtual int getPixelY() const A_WARN_UNUSED - { return static_cast<int>(mPos.y); } + { return CAST_S32(mPos.y); } /** * Returns the pixel Y coordinate of the actor for sorting only. */ virtual int getSortPixelY() const A_WARN_UNUSED - { return static_cast<int>(mPos.y) - mYDiff; } + { return CAST_S32(mPos.y) - mYDiff; } /** * Returns the x coordinate in tiles of the actor. |