InfDeath -> DeathType upgrade rule fix

This commit is contained in:
reaperrr
2014-09-06 00:52:51 +02:00
parent 1b2ae9b4d4
commit 46bc3418ea

View File

@@ -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")
if (depth == 2 && parentKey.StartsWith("DeathSounds") && node.Key == "InfDeaths")
node.Key = "DeathTypes";
}
if (depth == 2 && parentKey == "SpawnsViceroid" && node.Key == "InfDeath")
node.Key = "DeathType";