Fixed amb1899 - Duplicate maps in auto generated maplists
authorMatt Woodrow <pred@alliedmods.net>
Thu Aug 07 23:32:09 2008 +0000 (2008-08-07)
changeset 222235a22e62d71f
parent 2221 98a80ac8217e
child 2223 a912c065719f
Fixed amb1899 - Duplicate maps in auto generated maplists
core/smn_maplists.cpp
     1.1 --- a/core/smn_maplists.cpp	Thu Aug 07 23:16:16 2008 +0000
     1.2 +++ b/core/smn_maplists.cpp	Thu Aug 07 23:32:09 2008 +0000
     1.3 @@ -387,7 +387,7 @@
     1.4  						continue;
     1.5  					}
     1.6  					strncopy(buffer, pDir->GetEntryName(), sizeof(buffer));
     1.7 -					if ((ptr = strstr(buffer, ".bsp")) == NULL)
     1.8 +					if ((ptr = strstr(buffer, ".bsp")) == NULL || ptr[4] != '\0')
     1.9  					{
    1.10  						pDir->NextEntry();
    1.11  						continue;