Revert to old behavior of life randomness
Signed-off-by: onox <denkpadje@gmail.com>
This commit is contained in:
parent
46f60b73b3
commit
69b055db0a
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue