]> git.mxchange.org Git - flightgear.git/blobdiff - Astro/solarsystem.cxx
Converted to new logstream debugging facility. This allows release
[flightgear.git] / Astro / solarsystem.cxx
index c059cf3a2490dc85d26b6f24d0846546827a0775..c3995f48eca89d22ff4a287c85ac194d28dae06c 100644 (file)
@@ -33,7 +33,7 @@
 
 #include <GL/glut.h>
 #include <XGL/xgl.h>
-#include <Debug/fg_debug.h>
+#include <Debug/logstream.hxx>
 #include <Time/sunpos.hxx>
 #include "solarsystem.hxx"
 
@@ -47,7 +47,8 @@ SolarSystem::SolarSystem(fgTIME *t)
 {
   if (theSolarSystem)
     {
-      fgPrintf(FG_GENERAL, FG_EXIT, "Error: only one solarsystem allowed\n");
+      FG_LOG( FG_GENERAL, FG_ALERT, "Error: only one solarsystem allowed" );
+      exit(-1);
     }
   theSolarSystem = this;
   ourSun     = new Star(t);