summaryrefslogtreecommitdiffstats
path: root/src/MapManager.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/MapManager.h')
-rw-r--r--src/MapManager.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/MapManager.h b/src/MapManager.h
index ef1e7588b..6730e515e 100644
--- a/src/MapManager.h
+++ b/src/MapManager.h
@@ -1,4 +1,4 @@
-
+
// MapManager.h
@@ -11,13 +11,12 @@
-#include <functional>
#include "Map.h"
-using cMapCallback = std::function<bool(cMap &)>;
+typedef cItemCallback<cMap> cMapCallback;
@@ -42,7 +41,7 @@ public:
/** Calls the callback for the map with the specified ID.
Returns true if the map was found and the callback called, false if map not found.
Callback return value is ignored. */
- bool DoWithMap(UInt32 a_ID, const cMapCallback & a_Callback); // Exported in ManualBindings.cpp
+ bool DoWithMap(UInt32 a_ID, cMapCallback & a_Callback); // Exported in ManualBindings.cpp
/** Ticks each registered map */
void TickMaps(void);