diff --git a/source/core/mapinfo.cpp b/source/core/mapinfo.cpp index 4ddee3b0c..f2c9d9fa1 100644 --- a/source/core/mapinfo.cpp +++ b/source/core/mapinfo.cpp @@ -33,6 +33,7 @@ ** */ +#include "c_dispatch.h" #include "mapinfo.h" #include "raze_music.h" #include "filesystem.h" @@ -50,6 +51,15 @@ MapRecord* lastLevel; // Same here, for the last level. unsigned int numUsedSlots; +CCMD(listmaps) +{ + for (unsigned int i = 0; i < numUsedSlots; i++) + { + Printf("%s\n", mapList[i].fileName.GetChars()); + } +} + + MapRecord *FindMapByName(const char *nm) { for (unsigned i = 0; i < numUsedSlots; i++)