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;