summaryrefslogtreecommitdiff
path: root/src/common
diff options
context:
space:
mode:
Diffstat (limited to 'src/common')
-rw-r--r--src/common/mapindex.c10
-rw-r--r--src/common/mapindex.h3
2 files changed, 0 insertions, 13 deletions
diff --git a/src/common/mapindex.c b/src/common/mapindex.c
index a1c86af97..be2913c69 100644
--- a/src/common/mapindex.c
+++ b/src/common/mapindex.c
@@ -128,18 +128,8 @@ unsigned short mapindex_name2id(const char* name)
if (strcmp(indexes[i].name,map_name)==0)
return i;
}
-#ifdef MAPINDEX_AUTOADD
- if( mapindex_addmap(i,map_name) )
- {
- ShowDebug("mapindex_name2id: Auto-added map \"%s\" to position %d\n", map_name, i);
- return i;
- }
- ShowWarning("mapindex_name2id: Failed to auto-add map \"%s\" to position %d!\n", map_name, i);
- return 0;
-#else
ShowDebug("mapindex_name2id: Map \"%s\" not found in index list!\n", map_name);
return 0;
-#endif
}
const char* mapindex_id2name(unsigned short id)
diff --git a/src/common/mapindex.h b/src/common/mapindex.h
index 06131d0a4..854669ea6 100644
--- a/src/common/mapindex.h
+++ b/src/common/mapindex.h
@@ -7,9 +7,6 @@
//File in charge of assigning a numberic ID to each map in existance for space saving when passing map info between servers.
extern char mapindex_cfgfile[80];
-//whether to enable auto-adding of maps during run. Not so secure as the map indexes will vary!
-//#define MAPINDEX_AUTOADD
-
#define MAX_MAPINDEX 2000
//Some definitions for the mayor city maps.