From 44cfa793df7bf6e91d6e2435a82b8c554ff69440 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matthias=20Mail=C3=A4nder?= Date: Sat, 16 Sep 2017 22:10:24 +0200 Subject: [PATCH] Don't import veinholedummy and correct it's index as it is a Westwood hack we don't need to immitate. There are already better ways to limit vein growth. --- OpenRA.Mods.Cnc/UtilityCommands/ImportTSMapCommand.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/OpenRA.Mods.Cnc/UtilityCommands/ImportTSMapCommand.cs b/OpenRA.Mods.Cnc/UtilityCommands/ImportTSMapCommand.cs index bbddb75e8e..8e3402b8b9 100644 --- a/OpenRA.Mods.Cnc/UtilityCommands/ImportTSMapCommand.cs +++ b/OpenRA.Mods.Cnc/UtilityCommands/ImportTSMapCommand.cs @@ -115,7 +115,7 @@ namespace OpenRA.Mods.Cnc.UtilityCommands { 0xAF, "trock03" }, { 0xB0, "trock04" }, { 0xB1, "trock05" }, - { 0xBB, "veinholedummy" }, + { 0xB2, null }, // veinholedummy { 0xBC, "crate" } }; @@ -389,6 +389,9 @@ namespace OpenRA.Mods.Cnc.UtilityCommands string actorType; if (OverlayToActor.TryGetValue(overlayType, out actorType)) { + if (string.IsNullOrEmpty(actorType)) + continue; + var shape = new Size(1, 1); if (OverlayShapes.TryGetValue(overlayType, out shape)) {