summaryrefslogtreecommitdiff
path: root/src/map.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-03-20 01:48:55 +0300
committerAndrei Karas <akaras@inbox.ru>2012-03-20 01:48:55 +0300
commit66d5da1cb7e1551ac019a08075896ba04b172e36 (patch)
tree4e574c152b7094ee10ce91c25ce2a1750d6abda2 /src/map.h
parentd8505394ee7e109c3fd1d35450ed106a5ceefcfb (diff)
downloadmv-66d5da1cb7e1551ac019a08075896ba04b172e36.tar.gz
mv-66d5da1cb7e1551ac019a08075896ba04b172e36.tar.bz2
mv-66d5da1cb7e1551ac019a08075896ba04b172e36.tar.xz
mv-66d5da1cb7e1551ac019a08075896ba04b172e36.zip
Fix tiles animation in opengl mode in non fringe layers.
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 5b79ec8f5..53698ea03 100644
--- a/src/map.h
+++ b/src/map.h
@@ -75,10 +75,14 @@ class TileAnimation
{
public:
TileAnimation(Animation *ani);
+
~TileAnimation();
- void update(int ticks = 1);
+
+ bool update(int ticks = 1);
+
void addAffectedTile(MapLayer *layer, int index)
{ mAffected.push_back(std::make_pair(layer, index)); }
+
private:
std::vector<std::pair<MapLayer*, int> > mAffected;
SimpleAnimation *mAnimation;