1
0
Fork 0

Patch from Erik Hofman to remove 'random' option for sound:

I back out this patch because it gives me 2~3 bonus fps, and it isn't
used now and probably won't be used in the future.
This commit is contained in:
david 2002-08-05 20:49:17 +00:00
parent f253425973
commit e66c57a7bb
2 changed files with 0 additions and 4 deletions

View file

@ -167,8 +167,6 @@ Configuration description:
dt_stop: the number of seconds after the sound has stopped.
random: a random number between 0.0 and 1.0
<type>
Defines the function that should be used upon the property
before it is used for calculating the net result:

View file

@ -31,7 +31,6 @@
#include <string.h>
#include <simgear/debug/logstream.hxx>
#include <simgear/math/sg_random.h>
#include <Main/fg_props.hxx>
@ -307,7 +306,6 @@ FGSound::update (double dt)
//
_dt_play += dt;
_prev_value = curr_value;
_random = sg_random();
//
// Update the volume