suspecting drag instead

This commit is contained in:
Chris Forbes
2010-09-20 17:55:16 +12:00
parent fe52e3722e
commit 5509d0d2e9
2 changed files with 3 additions and 2 deletions

View File

@@ -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;

View File

@@ -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;