From e78c56af7dfb6d8258ada8a5f58e39d7be633dc2 Mon Sep 17 00:00:00 2001
From: ehofman <ehofman>
Date: Sat, 27 Mar 2010 10:59:04 +0000
Subject: [PATCH] Allow particles to be frozen on pause.

---
 src/Main/fg_props.cxx | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/Main/fg_props.cxx b/src/Main/fg_props.cxx
index 31f4ae0da..6f5cc1f89 100644
--- a/src/Main/fg_props.cxx
+++ b/src/Main/fg_props.cxx
@@ -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);
 }