CVS: source/src/Traffic Schedule.cxx, 1.42, 1.43

Durk Talsma <[email protected]> Sun, 25 Apr 2010 03:33:43 -0500
Newsgroups gmane.games.flightgear.cvc
Message-ID <[email protected]>
Update of /var/cvs/FlightGear-0.9/source/src/Traffic
In directory baron.flightgear.org:/tmp/cvs-serv18630/src/Traffic

Modified Files:
	Schedule.cxx 
Log Message:
Expanded ATC communication between AI aircraft and Airport ground control.


Index: Schedule.cxx
===================================================================
RCS file: /var/cvs/FlightGear-0.9/source/src/Traffic/Schedule.cxx,v
retrieving revision 1.42
retrieving revision 1.43
diff -u -r1.42 -r1.43
--- Schedule.cxx	19 Feb 2010 00:31:39 -0000	1.42
+++ Schedule.cxx	25 Apr 2010 08:33:34 -0000	1.43
@@ -201,15 +201,17 @@
   
   if (firstRun) {
      if (fgGetBool("/sim/traffic-manager/instantaneous-action") == true) {
-         deptime = now + rand() % 300; // Wait up to 5 minutes until traffic starts moving to prevent too many aircraft 
+         deptime = now; // + rand() % 300; // Wait up to 5 minutes until traffic starts moving to prevent too many aircraft 
                                    // from cluttering the gate areas.
      }
      firstRun = false;
   }
   
   FGScheduledFlight* flight = flights.front();
-  if (!deptime)
+  if (!deptime) {
     deptime = flight->getDepartureTime();
+    //cerr << "Settiing departure time " << deptime << endl;
+  }
     
   if (AIManagerRef) {
     // Check if this aircraft has been released. 


------------------------------------------------------------------------------