@@ -156,7 +156,7 @@ public override IActivity Tick( Actor self )
156
156
}
157
157
else
158
158
{
159
- mobile . SetLocation ( mobile . fromCell , nextCell . Value ) ;
159
+ mobile . toCell = nextCell . Value ;
160
160
var move = new MoveFirstHalf (
161
161
this ,
162
162
Util . CenterOfCell ( mobile . fromCell ) ,
@@ -350,7 +350,8 @@ protected override MovePart OnComplete( Actor self, Mobile mobile, Move parent )
350
350
mobile . Facing ,
351
351
Util . GetNearestFacing ( mobile . Facing , Util . GetFacing ( nextCell . Value - mobile . toCell , mobile . Facing ) ) ,
352
352
moveFraction - moveFractionTotal ) ;
353
- mobile . SetLocation ( mobile . toCell , nextCell . Value ) ;
353
+ mobile . fromCell = mobile . toCell ;
354
+ mobile . toCell = nextCell . Value ;
354
355
return ret ;
355
356
}
356
357
else
@@ -363,7 +364,7 @@ protected override MovePart OnComplete( Actor self, Mobile mobile, Move parent )
363
364
mobile . Facing ,
364
365
mobile . Facing ,
365
366
moveFraction - moveFractionTotal ) ;
366
- mobile . SetLocation ( mobile . toCell , mobile . toCell ) ;
367
+ mobile . fromCell = mobile . toCell ;
367
368
return ret2 ;
368
369
}
369
370
}
@@ -378,7 +379,7 @@ public MoveSecondHalf( Move move, float2 from, float2 to, int fromFacing, int to
378
379
protected override MovePart OnComplete ( Actor self , Mobile mobile , Move parent )
379
380
{
380
381
self . CenterLocation = Util . CenterOfCell ( mobile . toCell ) ;
381
- mobile . SetLocation ( mobile . toCell , mobile . toCell ) ;
382
+ mobile . fromCell = mobile . toCell ;
382
383
mobile . FinishedMoving ( self ) ;
383
384
return null ;
384
385
}
0 commit comments