From edd500dd27bb648840abfe1cecb0767d7b2ba3ae Mon Sep 17 00:00:00 2001 From: Philipp Sehmisch Date: Sun, 25 Jan 2009 03:36:13 +0100 Subject: Fixed performance hickups caused by animations due to buggy tick timer. A tad less performant than the intended solution but at least it is constantly so. --- src/map.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/map.h') diff --git a/src/map.h b/src/map.h index 57d5b9ac..73be3dd2 100644 --- a/src/map.h +++ b/src/map.h @@ -78,7 +78,6 @@ class TileAnimation private: std::list > mAffected; SimpleAnimation mAnimation; - int mLastUpdate; Image* mLastImage; }; @@ -159,6 +158,11 @@ class Map : public Properties */ void initializeOverlays(); + /** + * Updates animations. Called every game tick. + */ + void update(); + /** * Draws the map to the given graphics output. This method draws all * layers, sprites and overlay effects. -- cgit v1.2.3-60-g2f50