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:
parent
f253425973
commit
e66c57a7bb
2 changed files with 0 additions and 4 deletions
|
@ -166,8 +166,6 @@ Configuration description:
|
|||
dt_play: the number of seconds since the sound started playing.
|
||||
|
||||
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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue