diff options
author | Björn Steinbrink <B.Steinbrink@gmx.de> | 2006-02-23 16:02:00 +0000 |
---|---|---|
committer | Björn Steinbrink <B.Steinbrink@gmx.de> | 2006-02-23 16:02:00 +0000 |
commit | 05a12d5568111fa13759026442ed358605bf9a28 (patch) | |
tree | 9948a2351c846dee1b36f25a90d1429aa78dda23 /src/beingmanager.cpp | |
parent | 3737fb9fd3ff6072f83bdc514f88ad0fdbf4da6c (diff) | |
download | mana-05a12d5568111fa13759026442ed358605bf9a28.tar.gz mana-05a12d5568111fa13759026442ed358605bf9a28.tar.bz2 mana-05a12d5568111fa13759026442ed358605bf9a28.tar.xz mana-05a12d5568111fa13759026442ed358605bf9a28.zip |
A bunch of mostly cosmetic cleanups.
Diffstat (limited to 'src/beingmanager.cpp')
-rw-r--r-- | src/beingmanager.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/beingmanager.cpp b/src/beingmanager.cpp index e6c88041..311cfa91 100644 --- a/src/beingmanager.cpp +++ b/src/beingmanager.cpp @@ -95,7 +95,7 @@ void BeingManager::destroyBeing(Being *being) Being* BeingManager::findBeing(Uint32 id) { - for (Beings::iterator i = mBeings.begin(); i != mBeings.end(); i++) + for (BeingIterator i = mBeings.begin(); i != mBeings.end(); i++) { Being *being = (*i); if (being->getId() == id) { @@ -111,7 +111,7 @@ Being* BeingManager::findBeing(Uint16 x, Uint16 y, Being::Type type) beingFinder.y = y; beingFinder.type = type; - Beings::iterator i = find_if(mBeings.begin(), mBeings.end(), beingFinder); + BeingIterator i = find_if(mBeings.begin(), mBeings.end(), beingFinder); return (i == mBeings.end()) ? NULL : *i; } @@ -128,8 +128,7 @@ void BeingManager::clear() mBeings.remove(player_node); } - Beings::iterator i; - for (i = mBeings.begin(); i != mBeings.end(); i++) + for (BeingIterator i = mBeings.begin(); i != mBeings.end(); i++) { delete (*i); } |