diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-03-20 01:48:55 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-04-01 21:16:53 +0300 |
commit | 1172c72401d6478f1fecc28ebccf335a99a51faf (patch) | |
tree | b5b78f5ba1da0b90d1c0f5662a9f257882948bae /src/map.h | |
parent | 000eff105087e56b2d8d632c137fd82584aa8dd8 (diff) | |
download | plus-1172c72401d6478f1fecc28ebccf335a99a51faf.tar.gz plus-1172c72401d6478f1fecc28ebccf335a99a51faf.tar.bz2 plus-1172c72401d6478f1fecc28ebccf335a99a51faf.tar.xz plus-1172c72401d6478f1fecc28ebccf335a99a51faf.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; |