diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-01-20 19:01:23 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-01-20 19:29:26 +0300 |
commit | 531433248fbad49e2b8e9d90de9855f3ea9b2257 (patch) | |
tree | 33937a65d8b18934879824fa4c2a6183d53d5e73 /src/gui/viewport.cpp | |
parent | 48071e171de41a23197c7328ba038331a936e0eb (diff) | |
download | ManaVerse-531433248fbad49e2b8e9d90de9855f3ea9b2257.tar.gz ManaVerse-531433248fbad49e2b8e9d90de9855f3ea9b2257.tar.bz2 ManaVerse-531433248fbad49e2b8e9d90de9855f3ea9b2257.tar.xz ManaVerse-531433248fbad49e2b8e9d90de9855f3ea9b2257.zip |
Another part with FOR_EACH changes.
Diffstat (limited to 'src/gui/viewport.cpp')
-rw-r--r-- | src/gui/viewport.cpp | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/src/gui/viewport.cpp b/src/gui/viewport.cpp index b0d41edd3..318641011 100644 --- a/src/gui/viewport.cpp +++ b/src/gui/viewport.cpp @@ -256,8 +256,7 @@ void Viewport::draw(gcn::Graphics *gcnGraphics) // Draw player names, speech, and emotion sprite as needed const ActorSprites &actors = actorSpriteManager->getAll(); - for (ActorSpritesConstIterator it = actors.begin(), it_end = actors.end(); - it != it_end; ++it) + FOR_EACH (ActorSpritesConstIterator, it, actors) { if ((*it)->getType() == ActorSprite::FLOOR_ITEM) continue; @@ -342,8 +341,7 @@ void Viewport::_drawDebugPath(Graphics *const graphics) // Draw the path debug information for every beings. const ActorSprites &actors = actorSpriteManager->getAll(); - for (ActorSpritesConstIterator it = actors.begin(), it_end = actors.end(); - it != it_end; ++ it) + FOR_EACH (ActorSpritesConstIterator, it, actors) { const Being *const being = dynamic_cast<Being*>(*it); if (being && being != player_node) @@ -368,8 +366,7 @@ void Viewport::_drawPath(Graphics *const graphics, const Path &path, #endif { int cnt = 1; - for (Path::const_iterator i = path.begin(), i_end = path.end(); - i != i_end; ++i) + FOR_EACH (Path::const_iterator, i, path) { const int squareX = i->x * 32 - mPixelViewX + 12; const int squareY = i->y * 32 - mPixelViewY + 12; @@ -387,8 +384,7 @@ void Viewport::_drawPath(Graphics *const graphics, const Path &path, #ifdef MANASERV_SUPPORT else if (Net::getNetworkType() == ServerInfo::MANASERV) { - for (Path::const_iterator i = path.begin(), i_end = path.end(); - i != i_end; ++i) + FOR_EACH (Path::const_iterator, i, path) { int squareX = i->x - mPixelViewX; int squareY = i->y - mPixelViewY; |