summaryrefslogtreecommitdiff
path: root/src/map.h
diff options
context:
space:
mode:
authorPhilipp Sehmisch <crush@themanaworld.org>2009-01-25 03:36:13 +0100
committerPhilipp Sehmisch <crush@themanaworld.org>2009-01-25 03:36:13 +0100
commit7e928fc6559e89b64f49aea30d796dbfe75c4912 (patch)
tree6099e8e7f85b80bbda957e2a3b83c63441236717 /src/map.h
parente64ed1af4896127a2a1d0989c624e4b7e327dd5f (diff)
downloadmana-client-7e928fc6559e89b64f49aea30d796dbfe75c4912.tar.gz
mana-client-7e928fc6559e89b64f49aea30d796dbfe75c4912.tar.bz2
mana-client-7e928fc6559e89b64f49aea30d796dbfe75c4912.tar.xz
mana-client-7e928fc6559e89b64f49aea30d796dbfe75c4912.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 88a1008b..1bd93008 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.
*