From: Erik Hofman Date: Tue, 13 Dec 2011 10:40:08 +0000 (+0100) Subject: No need to start non looping samples automatically when getting in-range. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=a92ea7f822bf175df15fc05a2425f6e94dc520f3;p=simgear.git No need to start non looping samples automatically when getting in-range. --- diff --git a/simgear/sound/sample_openal.hxx b/simgear/sound/sample_openal.hxx index a5ad521d..35aabab9 100644 --- a/simgear/sound/sample_openal.hxx +++ b/simgear/sound/sample_openal.hxx @@ -158,7 +158,7 @@ public: * Schedule this audio sample to stop (or start) playing. */ inline void set_out_of_range(bool oor = true) { - _out_of_range = oor; _playing = oor ? false : true; _changed = true; + _out_of_range = oor; _playing = (!oor && _loop); _changed = true; } /**