1
0
Fork 0

Revert to old behavior of life randomness

Signed-off-by: onox <denkpadje@gmail.com>
This commit is contained in:
onox 2015-05-27 11:35:51 +02:00 committed by Erik Hofman
parent 46f60b73b3
commit 69b055db0a

View file

@ -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;
}