]> git.mxchange.org Git - flightgear.git/blobdiff - src/Sound/beacon.cxx
Make the view-manager and sound-manager independent.
[flightgear.git] / src / Sound / beacon.cxx
index de9a98915131516c05952013a89cf93b32a889f1..9d7a1a18452885c93c825132c14732704564100f 100644 (file)
@@ -18,8 +18,6 @@
 // along with this program; if not, write to the Free Software
 // Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
 //
-// $Id$
-
 
 #include <stdlib.h>
 #include <cstring>
@@ -104,3 +102,14 @@ bool FGBeacon::init() {
 
     return true;
 }
+
+FGBeacon * FGBeacon::_instance = NULL;\r
+\r
+FGBeacon * FGBeacon::instance()\r
+{\r
+    if( _instance == NULL ) {\r
+        _instance = new FGBeacon();\r
+        _instance->init();\r
+    }\r
+    return _instance;\r
+}\r