summaryrefslogtreecommitdiff
path: root/src/common/mapindex.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/common/mapindex.c')
-rw-r--r--src/common/mapindex.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/common/mapindex.c b/src/common/mapindex.c
index b8bb12c18..37afcad3d 100644
--- a/src/common/mapindex.c
+++ b/src/common/mapindex.c
@@ -29,9 +29,7 @@ char *mapindex_normalize_name(char *mapname)
if (ptr) { //Check and remove extension.
while (ptr[1] && (ptr2 = strchr(ptr+1, '.')))
ptr = ptr2; //Skip to the last dot.
- if(stricmp(ptr,".gat") == 0 ||
- stricmp(ptr,".afm") == 0 ||
- stricmp(ptr,".af2") == 0)
+ if(stricmp(ptr,".gat") == 0)
*ptr = '\0'; //Remove extension.
}
return mapname;