Merge pull request #352 from diamante0018/zones-assets

[AssetHandler] Fix gfxworld issue with zones 316 or higher
This commit is contained in:
Dss0 2022-07-11 11:53:37 +02:00 committed by GitHub
commit fe04f89e2a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -269,6 +269,13 @@ namespace Components
}
}
}
if (type == Game::XAssetType::ASSET_TYPE_GFXWORLD && Zones::Version() >= 316)
{
asset.gfxWorld->sortKeyEffectDecal = 39;
asset.gfxWorld->sortKeyEffectAuto = 48;
asset.gfxWorld->sortKeyDistortion = 43;
}
}
bool AssetHandler::IsAssetEligible(Game::XAssetType type, Game::XAssetHeader *asset)