[ZoneBuilder] Remove unncessary restriction

This commit is contained in:
momo5502 2017-03-24 18:27:53 +01:00
parent 79d8fa4514
commit 4449f76061

View File

@ -768,7 +768,7 @@ namespace Components
Utils::Hook::Set<DWORD>(0x64A029, 0x38400000); // 900 MiB Utils::Hook::Set<DWORD>(0x64A029, 0x38400000); // 900 MiB
Utils::Hook::Set<DWORD>(0x64A057, 0x38400000); Utils::Hook::Set<DWORD>(0x64A057, 0x38400000);
AssetHandler::OnLoad([](Game::XAssetType type, Game::XAssetHeader /*asset*/, std::string name, bool* restrict) AssetHandler::OnLoad([](Game::XAssetType type, Game::XAssetHeader /*asset*/, std::string name, bool* /*restrict*/)
{ {
// This is used to track which assets can be stored as empty assets // This is used to track which assets can be stored as empty assets
if (FastFiles::Current() == "common_mp") if (FastFiles::Current() == "common_mp")
@ -780,11 +780,6 @@ namespace Components
{ {
ZoneBuilder::TraceAssets.push_back({ type, name }); ZoneBuilder::TraceAssets.push_back({ type, name });
} }
if(FastFiles::Current() == "iw4_credits"s && type == Game::XAssetType::ASSET_TYPE_COMWORLD)
{
*restrict = true;
}
}); });
Command::Add("verifyzone", [](Command::Params* params) Command::Add("verifyzone", [](Command::Params* params)