Update ZoneBuilder.cpp

This commit is contained in:
Michael Maurer II 2023-08-29 20:06:11 +00:00 committed by GitHub
parent f2e373a793
commit b0bb9e7843
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -266,6 +266,12 @@ namespace Components
{
assetHeader.gfxWorld->sortKeyDistortion = 43;
}
//Absolutely necessary patch for later codol maps. prevents player models from glowing ridiculously
if (assetHeader.gfxWorld->heroOnlyLightCount > 0)
{
Logger::Print("Fixing heroOnlyLightCount...\n");
assetHeader.gfxWorld->heroOnlyLightCount = 0;
}
}
//likewise if material's sortKey is 44, it needs to be changed to 43.
if (type == Game::XAssetType::ASSET_TYPE_MATERIAL)