diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-03-20 01:48:55 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-03-20 01:48:55 +0300 |
commit | 66d5da1cb7e1551ac019a08075896ba04b172e36 (patch) | |
tree | 4e574c152b7094ee10ce91c25ce2a1750d6abda2 /src/map.h | |
parent | d8505394ee7e109c3fd1d35450ed106a5ceefcfb (diff) | |
download | mv-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.h | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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; |