From d662c4aa20342e74ed5d82a14e3fc8e62a45ca8c Mon Sep 17 00:00:00 2001 From: Robert Špalek Date: Fri, 30 Oct 2009 01:56:52 +0000 Subject: Remove the last 2 default parameter values. They usually just add unnecessary confusion and this is definitely such an example. Removal will clarify the code. svn-id: r45512 --- engines/draci/animation.h | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) (limited to 'engines/draci/animation.h') diff --git a/engines/draci/animation.h b/engines/draci/animation.h index a0cf43efb8..c0d536f2a2 100644 --- a/engines/draci/animation.h +++ b/engines/draci/animation.h @@ -46,12 +46,6 @@ enum { kInventoryItemsID = -11 }; -/** - * Default argument to Animation::getFrame() that makes it return - * the current frame instead of the user specifying it. - */ -enum { kCurrentFrame = -1 }; - /** * Used by overlays as a neutral index that won't get * released with the GPL Release command. @@ -74,11 +68,12 @@ public: void setID(int id); int getID() const; - void nextFrame(bool force = false); + void nextFrame(bool force); void drawFrame(Surface *surface); void addFrame(Drawable *frame, const SoundSample *sample); - Drawable *getFrame(int frameNum = kCurrentFrame); + Drawable *getCurrentFrame(); + Drawable *getFrame(int frameNum); void setCurrentFrame(uint frame); uint currentFrameNum() const; uint getFrameCount() const; -- cgit v1.2.3