]> git.mxchange.org Git - flightgear.git/commitdiff
Patch from Erik Hofman to remove 'random' option for sound:
authordavid <david>
Mon, 5 Aug 2002 20:49:17 +0000 (20:49 +0000)
committerdavid <david>
Mon, 5 Aug 2002 20:49:17 +0000 (20:49 +0000)
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.

docs-mini/README.xmlsound
src/Sound/fg_sound.cxx

index 165197768c9b7d07725024e11dd715a5ea3e0a1e..c8ed950cf2efc990aa805b042f66ac36f6930c1d 100644 (file)
@@ -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
index 0278940df3f7038ddfc613f9f54a7971a90d9c91..ccd8075e014218b934bcb364db21e6027191286e 100644 (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