summaryrefslogtreecommitdiff
path: root/src/map.h
diff options
context:
space:
mode:
authorPhilipp Sehmisch <crush@themanaworld.org>2009-01-25 03:36:13 +0100
committerIra Rice <irarice@gmail.com>2009-01-25 00:00:10 -0700
commitedd500dd27bb648840abfe1cecb0767d7b2ba3ae (patch)
tree7500a0c6906b3901677d4010b9a0dc845740c882 /src/map.h
parent20adf0056f3b22bf9628daed0967151918f75ad2 (diff)
downloadMana-edd500dd27bb648840abfe1cecb0767d7b2ba3ae.tar.gz
Mana-edd500dd27bb648840abfe1cecb0767d7b2ba3ae.tar.bz2
Mana-edd500dd27bb648840abfe1cecb0767d7b2ba3ae.tar.xz
Mana-edd500dd27bb648840abfe1cecb0767d7b2ba3ae.zip
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.
Diffstat (limited to 'src/map.h')
-rw-r--r--src/map.h6
1 files changed, 5 insertions, 1 deletions
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<std::pair<MapLayer*, int> > mAffected;
SimpleAnimation mAnimation;
- int mLastUpdate;
Image* mLastImage;
};
@@ -160,6 +159,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.
*