From 5509d0d2e9675ba3eb6953cb7582d2209b678bf8 Mon Sep 17 00:00:00 2001 From: Chris Forbes Date: Mon, 20 Sep 2010 17:55:16 +1200 Subject: [PATCH] suspecting drag instead --- OpenRA.Game/Traits/Activities/Drag.cs | 3 ++- OpenRA.Game/Traits/Production.cs | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/OpenRA.Game/Traits/Activities/Drag.cs b/OpenRA.Game/Traits/Activities/Drag.cs index 46080ad81d..c39b6e1f5c 100644 --- a/OpenRA.Game/Traits/Activities/Drag.cs +++ b/OpenRA.Game/Traits/Activities/Drag.cs @@ -30,7 +30,8 @@ namespace OpenRA.Traits.Activities int ticks = 0; public IActivity Tick( Actor self ) { - self.CenterLocation = float2.Lerp(startLocation, endLocation, (float)ticks/(length-1)); + self.CenterLocation = float2.Lerp(startLocation, endLocation, (float)ticks/(length-1)); + Log.Write("debug", "drag #{0} {1} {2}", self.ActorID, ticks, self.CenterLocation); if (++ticks >= length) return NextActivity; diff --git a/OpenRA.Game/Traits/Production.cs b/OpenRA.Game/Traits/Production.cs index e4996e9f29..fa1be97228 100755 --- a/OpenRA.Game/Traits/Production.cs +++ b/OpenRA.Game/Traits/Production.cs @@ -63,7 +63,7 @@ namespace OpenRA.Traits var length = speed > 0 ? (int)( ( to - spawn ).Length*3 / speed ) : 0; newUnit.QueueActivity(new Activities.Drag(spawn, to, length)); - Log.Write("debug", "length={0} facing={1} exit={2} spawn={3}", length, facing.Facing, exit, spawn); +// Log.Write("debug", "length={0} facing={1} exit={2} spawn={3}", length, facing.Facing, exit, spawn); // For the target line var target = exit;