From ca2950fb8bffa9924aa49ab1d4729dbc2a391752 Mon Sep 17 00:00:00 2001 From: Daniel Bradshaw Date: Tue, 26 Jan 2010 21:02:20 +0000 Subject: Added virtual destructors, some implicit casts, and a couple of type changes. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Many warnings removed. Reviewed-by: Thorbjørn Lindeijer --- src/being.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/being.h') diff --git a/src/being.h b/src/being.h index c564482a..d7e9063f 100644 --- a/src/being.h +++ b/src/being.h @@ -392,7 +392,7 @@ class Being : public Sprite, public ConfigListener * Returns the X coordinate in pixels. */ int getPixelX() const - { return mPos.x; } + { return (int) mPos.x; } /** * Returns the Y coordinate in pixels. @@ -400,7 +400,7 @@ class Being : public Sprite, public ConfigListener * @see Sprite::getPixelY() */ int getPixelY() const - { return mPos.y; } + { return (int) mPos.y; } /** * Sets the position of this being. -- cgit v1.2.3-70-g09d2