diff options
author | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2009-04-08 23:24:37 +0200 |
---|---|---|
committer | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2009-04-09 22:48:21 +0200 |
commit | 69d8407badcb703709534f5097b9b5697ac3404c (patch) | |
tree | 7a7e126b0ce0181f22397d62ca3d4e553482b439 /src/gui/viewport.cpp | |
parent | 1158bce840bbd76a297c4f5eefd19444584f6fcd (diff) | |
download | mana-69d8407badcb703709534f5097b9b5697ac3404c.tar.gz mana-69d8407badcb703709534f5097b9b5697ac3404c.tar.bz2 mana-69d8407badcb703709534f5097b9b5697ac3404c.tar.xz mana-69d8407badcb703709534f5097b9b5697ac3404c.zip |
Made BeingManager methods const where appropriate
Diffstat (limited to 'src/gui/viewport.cpp')
-rw-r--r-- | src/gui/viewport.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/gui/viewport.cpp b/src/gui/viewport.cpp index 6dd1cb92..3fc5f2d4 100644 --- a/src/gui/viewport.cpp +++ b/src/gui/viewport.cpp @@ -214,8 +214,9 @@ void Viewport::draw(gcn::Graphics *gcnGraphics) } // Draw player names, speech, and emotion sprite as needed - Beings &beings = beingManager->getAll(); - for (BeingIterator i = beings.begin(); i != beings.end(); i++) + const Beings &beings = beingManager->getAll(); + for (Beings::const_iterator i = beings.begin(), i_end = beings.end(); + i != i_end; ++i) { (*i)->drawSpeech((int) mPixelViewX, (int) mPixelViewY); (*i)->drawEmotion(graphics, (int) mPixelViewX, (int) mPixelViewY); |