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
|
@ -167,8 +167,6 @@ Configuration description:
|
||||||
|
|
||||||
dt_stop: the number of seconds after the sound has stopped.
|
dt_stop: the number of seconds after the sound has stopped.
|
||||||
|
|
||||||
random: a random number between 0.0 and 1.0
|
|
||||||
|
|
||||||
<type>
|
<type>
|
||||||
Defines the function that should be used upon the property
|
Defines the function that should be used upon the property
|
||||||
before it is used for calculating the net result:
|
before it is used for calculating the net result:
|
||||||
|
|
|
@ -31,7 +31,6 @@
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
#include <simgear/debug/logstream.hxx>
|
#include <simgear/debug/logstream.hxx>
|
||||||
#include <simgear/math/sg_random.h>
|
|
||||||
|
|
||||||
#include <Main/fg_props.hxx>
|
#include <Main/fg_props.hxx>
|
||||||
|
|
||||||
|
@ -307,7 +306,6 @@ FGSound::update (double dt)
|
||||||
//
|
//
|
||||||
_dt_play += dt;
|
_dt_play += dt;
|
||||||
_prev_value = curr_value;
|
_prev_value = curr_value;
|
||||||
_random = sg_random();
|
|
||||||
|
|
||||||
//
|
//
|
||||||
// Update the volume
|
// Update the volume
|
||||||
|
|
Loading…
Add table
Reference in a new issue