Remove shipment hack
This commit is contained in:
parent
984c63532e
commit
43c620c47e
@ -205,8 +205,7 @@ namespace Components
|
||||
|
||||
void Maps::LoadAssetRestrict(Game::XAssetType type, Game::XAssetHeader asset, const std::string& name, bool* restrict)
|
||||
{
|
||||
if (std::find(Maps::CurrentDependencies.begin(), Maps::CurrentDependencies.end(), FastFiles::Current()) != Maps::CurrentDependencies.end()
|
||||
&& (FastFiles::Current() != "mp_shipment_long" || Maps::CurrentMainZone != "mp_shipment")) // Shipment is a special case
|
||||
if (std::find(Maps::CurrentDependencies.begin(), Maps::CurrentDependencies.end(), FastFiles::Current()) != Maps::CurrentDependencies.end()) // Shipment is a special case
|
||||
{
|
||||
switch (type)
|
||||
{
|
||||
@ -315,6 +314,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_"))
|
||||
@ -322,12 +322,6 @@ namespace Components
|
||||
format = "maps/%s.d3dbsp";
|
||||
}
|
||||
|
||||
// TODO: Remove this hack by using CoD4 version of the map
|
||||
if (std::strcmp(mapname, "mp_shipment") == 0)
|
||||
{
|
||||
mapname = "mp_shipment_long";
|
||||
}
|
||||
|
||||
_snprintf_s(buffer, size, _TRUNCATE, format, mapname);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user