Remove red fx in debug mode and load training maps

This commit is contained in:
momo5502 2016-10-31 02:08:37 +01:00
parent 5c648250b6
commit 76b9d5a475
2 changed files with 10 additions and 1 deletions

View File

@ -137,6 +137,14 @@ namespace Components
asset->material->sortKey = 0xE;
}
#ifdef DEBUG
// This is bad! We still want to see red-fxs in release mode
if (type == Game::XAssetType::ASSET_TYPE_XMODEL && name == "void"s)
{
asset->model->numLods = 0;
}
#endif
if (Flags::HasFlag("entries"))
{
OutputDebugStringA(Utils::String::VA("%s: %d: %s\n", FastFiles::Current().data(), type, name));

View File

@ -128,7 +128,8 @@ namespace Components
//Maps::OverrideMapEnts(asset.mapEnts);
}
if (type == Game::XAssetType::ASSET_TYPE_MENU && Zones::Version() >= 359)
// This is broken
if ((type == Game::XAssetType::ASSET_TYPE_MENU || type == Game::XAssetType::ASSET_TYPE_MENUFILE) && Zones::Version() >= 359)
{
*restrict = true;
return;