Fixed division through zero in moveFractionTotal

closes #3710
This commit is contained in:
Matthias Mailänder
2013-08-19 20:39:07 +02:00
parent bd0e29d274
commit d272377d66

View File

@@ -319,6 +319,7 @@ namespace OpenRA.Mods.RA.Move
void UpdateCenterLocation(Actor self, Mobile mobile)
{
if (moveFractionTotal != 0)
mobile.SetVisualPosition(self, WPos.Lerp(from, to, moveFraction, moveFractionTotal));
if (moveFraction >= moveFractionTotal)