From a92ea7f822bf175df15fc05a2425f6e94dc520f3 Mon Sep 17 00:00:00 2001 From: Erik Hofman Date: Tue, 13 Dec 2011 11:40:08 +0100 Subject: [PATCH] No need to start non looping samples automatically when getting in-range. --- simgear/sound/sample_openal.hxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } /** -- 2.39.5