diff options
author | madmaxoft <github@xoft.cz> | 2014-07-20 23:10:31 +0200 |
---|---|---|
committer | madmaxoft <github@xoft.cz> | 2014-07-21 17:38:50 +0200 |
commit | 6be79575fd50e37ac275bd0cb9d16f9e51e8a225 (patch) | |
tree | b02e68b73bf1152f9d84020ee006d5325e096691 /src/MobProximityCounter.cpp | |
parent | Cuboid: added explicit copy assignment operator (diff) | |
download | cuberite-6be79575fd50e37ac275bd0cb9d16f9e51e8a225.tar cuberite-6be79575fd50e37ac275bd0cb9d16f9e51e8a225.tar.gz cuberite-6be79575fd50e37ac275bd0cb9d16f9e51e8a225.tar.bz2 cuberite-6be79575fd50e37ac275bd0cb9d16f9e51e8a225.tar.lz cuberite-6be79575fd50e37ac275bd0cb9d16f9e51e8a225.tar.xz cuberite-6be79575fd50e37ac275bd0cb9d16f9e51e8a225.tar.zst cuberite-6be79575fd50e37ac275bd0cb9d16f9e51e8a225.zip |
Diffstat (limited to 'src/MobProximityCounter.cpp')
-rw-r--r-- | src/MobProximityCounter.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/MobProximityCounter.cpp b/src/MobProximityCounter.cpp index f5d3e970c..82ba771ff 100644 --- a/src/MobProximityCounter.cpp +++ b/src/MobProximityCounter.cpp @@ -34,7 +34,7 @@ void cMobProximityCounter::CollectMob(cEntity& a_Monster, cChunk& a_Chunk, doubl void cMobProximityCounter::convertMaps() { - for(tMonsterToDistance::const_iterator itr = m_MonsterToDistance.begin(); itr != m_MonsterToDistance.end(); ++itr) + for (tMonsterToDistance::const_iterator itr = m_MonsterToDistance.begin(); itr != m_MonsterToDistance.end(); ++itr) { m_DistanceToMonster.insert(tDistanceToMonster::value_type(itr->second.m_Distance, sMonsterAndChunk(*itr->first, *itr->second.m_Chunk))); } @@ -55,7 +55,7 @@ cMobProximityCounter::sIterablePair cMobProximityCounter::getMobWithinThosesDist convertMaps(); } - for(tDistanceToMonster::const_iterator itr = m_DistanceToMonster.begin(); itr != m_DistanceToMonster.end(); ++itr) + for (tDistanceToMonster::const_iterator itr = m_DistanceToMonster.begin(); itr != m_DistanceToMonster.end(); ++itr) { if (toReturn.m_Begin == m_DistanceToMonster.end()) { |