Filter sublevels and BaseMap in GetAvailableMaps
This commit is contained in:
parent
003e74fc91
commit
5e420b0fa8
|
@ -227,6 +227,11 @@ void FCarlaServer::FPimpl::BindActions()
|
|||
result.reserve(MapNames.Num());
|
||||
for (const auto &MapName : MapNames)
|
||||
{
|
||||
if (MapName.Contains("/Sublevels/"))
|
||||
continue;
|
||||
if (MapName.Contains("/BaseMap/"))
|
||||
continue;
|
||||
|
||||
result.emplace_back(cr::FromFString(MapName));
|
||||
}
|
||||
return result;
|
||||
|
|
Loading…
Reference in New Issue