From e66c57a7bb0818bbc4f85ebdc84ddf20e1beb285 Mon Sep 17 00:00:00 2001 From: david Date: Mon, 5 Aug 2002 20:49:17 +0000 Subject: [PATCH] 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. --- docs-mini/README.xmlsound | 2 -- src/Sound/fg_sound.cxx | 2 -- 2 files changed, 4 deletions(-) diff --git a/docs-mini/README.xmlsound b/docs-mini/README.xmlsound index 165197768..c8ed950cf 100644 --- a/docs-mini/README.xmlsound +++ b/docs-mini/README.xmlsound @@ -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 Defines the function that should be used upon the property diff --git a/src/Sound/fg_sound.cxx b/src/Sound/fg_sound.cxx index 0278940df..ccd8075e0 100644 --- a/src/Sound/fg_sound.cxx +++ b/src/Sound/fg_sound.cxx @@ -31,7 +31,6 @@ #include #include -#include #include
@@ -307,7 +306,6 @@ FGSound::update (double dt) // _dt_play += dt; _prev_value = curr_value; - _random = sg_random(); // // Update the volume