Make Aircraft PausableConditional

Note: This commit only does the minimum changes
to implement PausableConditional, there are no
logic changes yet (like disabling movement on PauseOnCondition).
This commit is contained in:
reaperrr
2019-09-21 20:43:58 +02:00
committed by Paul Chote
parent 23b3c237b7
commit 4b006bc484
2 changed files with 19 additions and 20 deletions

View File

@@ -254,7 +254,7 @@ namespace OpenRA.Mods.Common.Activities
// turnSpeed -> divide into 256 to get the number of ticks per complete rotation
// speed -> multiply to get distance travelled per rotation (circumference)
// 45 -> divide by 2*pi to get the turn radius: 45==256/(2*pi), with some extra leeway
return 45 * speed / turnSpeed;
return turnSpeed > 0 ? 45 * speed / turnSpeed : 0;
}
}
}