diff options
author | Jared Adams <jaxad0127@gmail.com> | 2009-04-15 13:10:38 -0600 |
---|---|---|
committer | Jared Adams <jaxad0127@gmail.com> | 2009-04-15 13:10:38 -0600 |
commit | e8a1b2386bb2c28cfce0eb28d7e7067d51bb6701 (patch) | |
tree | 6c9218f32675f9d401301172869c30488ab08b16 /src/map.cpp | |
parent | 56c224050f10d976298cef98607aa3b3e56fcc99 (diff) | |
parent | 3d85a00ff2a33e22ba63d0b7dfc156d8076933e1 (diff) | |
download | mana-e8a1b2386bb2c28cfce0eb28d7e7067d51bb6701.tar.gz mana-e8a1b2386bb2c28cfce0eb28d7e7067d51bb6701.tar.bz2 mana-e8a1b2386bb2c28cfce0eb28d7e7067d51bb6701.tar.xz mana-e8a1b2386bb2c28cfce0eb28d7e7067d51bb6701.zip |
Merge branch 'master' of git@gitorious.org:tmw/mainline
Diffstat (limited to 'src/map.cpp')
-rw-r--r-- | src/map.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/map.cpp b/src/map.cpp index 0dc4759e..472c136f 100644 --- a/src/map.cpp +++ b/src/map.cpp @@ -75,13 +75,13 @@ TileAnimation::~TileAnimation() delete mAnimation; } -void TileAnimation::update() +void TileAnimation::update(int ticks) { if (!mAnimation) return; - //update animation - mAnimation->update(1); + // update animation + mAnimation->update(ticks); // exchange images Image *img = mAnimation->getCurrentImage(); @@ -248,14 +248,14 @@ bool spriteCompare(const Sprite *a, const Sprite *b) return a->getPixelY() < b->getPixelY(); } -void Map::update() +void Map::update(int ticks) { //update animated tiles for (std::map<int, TileAnimation*>::iterator iAni = mTileAnimations.begin(); iAni != mTileAnimations.end(); iAni++) { - iAni->second->update(); + iAni->second->update(ticks); } } |