From e4ec3092beb3e235dde1168ec7c27dcf0a0a224d Mon Sep 17 00:00:00 2001 From: Diavolo Date: Sun, 3 Jul 2022 17:49:22 +0200 Subject: [PATCH] [AssetHandler] Fix gfxworld issue with zones 316 or higher --- src/Components/Modules/AssetHandler.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/Components/Modules/AssetHandler.cpp b/src/Components/Modules/AssetHandler.cpp index 24dc0051..04079444 100644 --- a/src/Components/Modules/AssetHandler.cpp +++ b/src/Components/Modules/AssetHandler.cpp @@ -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)