From d7c6786781cc98655e1bb1d629947010c96ae2d1 Mon Sep 17 00:00:00 2001 From: TheApadayo Date: Sun, 26 Mar 2017 20:43:03 -0400 Subject: [PATCH] [Materials] only apply sort key fix when loading iw4c fast files --- src/Components/Modules/AssetHandler.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Components/Modules/AssetHandler.cpp b/src/Components/Modules/AssetHandler.cpp index da90b61a..6d241b9b 100644 --- a/src/Components/Modules/AssetHandler.cpp +++ b/src/Components/Modules/AssetHandler.cpp @@ -148,7 +148,7 @@ namespace Components void AssetHandler::ModifyAsset(Game::XAssetType type, Game::XAssetHeader asset, std::string name) { - if (type == Game::XAssetType::ASSET_TYPE_MATERIAL && (name == "gfx_distortion_knife_trail" || name == "gfx_distortion_heat_far" || name == "gfx_distortion_ring_light") && asset.material->sortKey == 43) + if (type == Game::XAssetType::ASSET_TYPE_MATERIAL && (name == "gfx_distortion_knife_trail" || name == "gfx_distortion_heat_far" || name == "gfx_distortion_ring_light" || name == "gfx_distortion_heat") && Zones::Version() >= VERSION_ALPHA2 && asset.material->sortKey == 43) { asset.material->sortKey = 44; }