From 9fe21fcd8883b37bdc30224822e6e42afb35b8f0 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 7 Feb 2016 16:18:13 +0300 Subject: Replace most static_cast to shorter versions from defines. --- src/being/actor.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/being/actor.h') 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(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(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(mPos.y) - mYDiff; } + { return CAST_S32(mPos.y) - mYDiff; } /** * Returns the x coordinate in tiles of the actor. -- cgit v1.2.3-70-g09d2