summaryrefslogtreecommitdiffstats
path: root/src/MapManager.cpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/MapManager.cpp22
1 files changed, 4 insertions, 18 deletions
diff --git a/src/MapManager.cpp b/src/MapManager.cpp
index 41b0d9e34..2729e67dd 100644
--- a/src/MapManager.cpp
+++ b/src/MapManager.cpp
@@ -42,18 +42,13 @@ bool cMapManager::DoWithMap(UInt32 a_ID, cMapCallback & a_Callback)
-bool cMapManager::ForEachMap(cMapCallback & a_Callback)
+void cMapManager::TickMaps()
{
cCSLock Lock(m_CS);
- for (cMapList::iterator itr = m_MapData.begin(); itr != m_MapData.end(); ++itr)
+ for (auto & Map : m_MapData)
{
- cMap * Map = &(*itr);
- if (a_Callback.Item(Map))
- {
- return false;
- }
- } // for itr - m_MapData[]
- return true;
+ Map.Tick();
+ }
}
@@ -97,15 +92,6 @@ cMap * cMapManager::CreateMap(int a_CenterX, int a_CenterY, unsigned int a_Scale
-size_t cMapManager::GetNumMaps(void) const
-{
- return m_MapData.size();
-}
-
-
-
-
-
void cMapManager::LoadMapData(void)
{
cCSLock Lock(m_CS);