*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
- * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*
*
**************************************************************************/
*
*
*****************************************************************************/
+
+#ifdef HAVE_CONFIG_H
+# include "config.h"
+#endif
+
#include <stdlib.h>
#include <time.h>
#include <iostream>
{
currAircraft=scheduledAircraft.erase(currAircraft);
//cerr << "Erasing " << currAircraft->getRegistration() << endl;
- currAircraft--;
}
else
{
void FGTrafficManager::update(double something)
{
time_t now = time(NULL) + fgGetLong("/sim/time/warp");
+ if (scheduledAircraft.size() == 0)
+ return;
if(currAircraft == scheduledAircraft.end())
{
//cerr << "resetting schedule " << endl;
currAircraft++;
}
-void FGTrafficManager::release(void *id)
+void FGTrafficManager::release(int id)
{
releaseList.push_back(id);
}
-bool FGTrafficManager::isReleased(void *id)
+bool FGTrafficManager::isReleased(int id)
{
IdListIterator i = releaseList.begin();
while (i != releaseList.end())