fix IsMapValid behavior change by a2246af121

This commit is contained in:
BotoX 2019-09-02 18:32:59 +02:00 committed by zaCade
parent 2c86e8099a
commit 8c534e770b

View File

@ -1432,7 +1432,7 @@ bool CHalfLife2::IsMapValid(const char *map)
if (!map || !map[0])
return false;
return FindMap(map) != SMFindMapResult::NotFound;
return FindMap(map) == SMFindMapResult::Found;
}
#if SOURCE_ENGINE < SE_ORANGEBOX