From 9befe377d5d270c395392ef66fb9c477d3e38ad5 Mon Sep 17 00:00:00 2001 From: Chris Forbes Date: Thu, 14 Oct 2010 19:15:37 +1300 Subject: [PATCH] fix invisible crates in cnc (where did that patch go?) --- OpenRA.Mods.RA/Crate.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/OpenRA.Mods.RA/Crate.cs b/OpenRA.Mods.RA/Crate.cs index 172b98e1ad..9f5515e3c8 100644 --- a/OpenRA.Mods.RA/Crate.cs +++ b/OpenRA.Mods.RA/Crate.cs @@ -48,7 +48,10 @@ namespace OpenRA.Mods.RA { this.self = init.self; if (init.Contains()) - this.Location = init.Get(); + { + this.Location = init.Get(); + PxPosition = Util.CenterOfCell(Location); + } this.Info = info;