From: onox Date: Wed, 27 May 2015 09:35:51 +0000 (+0200) Subject: Revert to old behavior of life randomness X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=69b055db0a16807e6ab3b5d23d8acd104fa672dc;p=flightgear.git Revert to old behavior of life randomness Signed-off-by: onox --- diff --git a/src/AIModel/AIBallistic.cxx b/src/AIModel/AIBallistic.cxx index a8e5a16b7..34d20364e 100644 --- a/src/AIModel/AIBallistic.cxx +++ b/src/AIModel/AIBallistic.cxx @@ -319,7 +319,7 @@ void FGAIBallistic::setDragArea(double a) { void FGAIBallistic::setLife(double seconds) { if (_random) - life = seconds * (1 - _life_randomness + 2 * _life_randomness * sg_random()); + life = seconds * _life_randomness + (seconds * (1 -_life_randomness) * sg_random()); else life = seconds; }