Merge pull request #81 from mjkzy/codol-zm

fix COD:OL zm maps
This commit is contained in:
Louve 2024-01-20 13:02:55 +01:00 committed by GitHub
commit ae229c4137
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -317,7 +317,7 @@ namespace Components
// TODO : Remove hook entirely?
void Maps::GetBSPName(char* buffer, size_t size, const char* format, const char* mapname)
{
if (!Utils::String::StartsWith(mapname, "mp_"))
if (!Utils::String::StartsWith(mapname, "mp_") && !Utils::String::StartsWith(mapname, "zm_"))
{
format = "maps/%s.d3dbsp";
}