From 46bc3418ea67032fb56ecc556d57136151dd000d Mon Sep 17 00:00:00 2001 From: reaperrr Date: Sat, 6 Sep 2014 00:52:51 +0200 Subject: [PATCH] InfDeath -> DeathType upgrade rule fix --- OpenRA.Utility/UpgradeRules.cs | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/OpenRA.Utility/UpgradeRules.cs b/OpenRA.Utility/UpgradeRules.cs index 112fcce697..692033723b 100644 --- a/OpenRA.Utility/UpgradeRules.cs +++ b/OpenRA.Utility/UpgradeRules.cs @@ -477,11 +477,9 @@ namespace OpenRA.Utility // InfDeath was renamed to DeathType if (engineVersion < 20140830) { - if (depth == 1 && parentKey.StartsWith("DeathSounds")) - { - if (depth == 2 && node.Key == "InfDeaths") - node.Key = "DeathTypes"; - } + + if (depth == 2 && parentKey.StartsWith("DeathSounds") && node.Key == "InfDeaths") + node.Key = "DeathTypes"; if (depth == 2 && parentKey == "SpawnsViceroid" && node.Key == "InfDeath") node.Key = "DeathType";