From 66d5da1cb7e1551ac019a08075896ba04b172e36 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 20 Mar 2012 01:48:55 +0300 Subject: Fix tiles animation in opengl mode in non fringe layers. --- 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 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 > mAffected; SimpleAnimation *mAnimation; -- cgit v1.2.3-60-g2f50