]> git.mxchange.org Git - flightgear.git/commitdiff
Allow particles to be frozen on pause.
authorehofman <ehofman>
Sat, 27 Mar 2010 10:59:04 +0000 (10:59 +0000)
committerTim Moore <timoore33@gmail.com>
Sat, 27 Mar 2010 23:35:28 +0000 (00:35 +0100)
src/Main/fg_props.cxx

index 31f4ae0dac7f5403c1d706349c7ba24d51ff7293..6f5cc1f899f00a04b7692794fa9b62686d0c820b 100644 (file)
@@ -31,6 +31,7 @@
 #include <simgear/magvar/magvar.hxx>
 #include <simgear/timing/sg_time.hxx>
 #include <simgear/misc/sg_path.hxx>
+#include <simgear/scene/model/particles.hxx>
 #include <simgear/sound/soundmgr_openal.hxx>
 
 #include <Aircraft/aircraft.hxx>
@@ -236,6 +237,9 @@ setFreeze (bool f)
             smgr->resume();
         }
     }
+
+    // Pause the particle system
+    simgear::Particles::setFrozen(f);
 }