From f4e01badebdc5975c9ded35a93f7ac501e4f73c8 Mon Sep 17 00:00:00 2001 From: Bjørn Lindeijer Date: Sun, 3 May 2009 23:28:26 +0200 Subject: Fixed compile warnings and other tweaks Warnings were about initialization order and signed variables compared to unsigned variables. Please pay attention to these things. Also made some getters const and turned some std::string parameters into const std::string &. --- src/resources/animation.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/resources') diff --git a/src/resources/animation.h b/src/resources/animation.h index f309dbf8..80e0781a 100644 --- a/src/resources/animation.h +++ b/src/resources/animation.h @@ -34,7 +34,7 @@ class Image; struct Frame { Image *image; - unsigned int delay; + int delay; int offsetX; int offsetY; }; @@ -68,7 +68,7 @@ class Animation /** * Returns the length of this animation in frames. */ - unsigned int getLength() const { return mFrames.size(); } + int getLength() const { return mFrames.size(); } /** * Returns the duration of this animation. -- cgit v1.2.3-70-g09d2