[Materials] only apply sort key fix when loading iw4c fast files

This commit is contained in:
TheApadayo 2017-03-26 20:43:03 -04:00
parent 8b51792e61
commit d7c6786781

View File

@ -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;
}