]> git.mxchange.org Git - flightgear.git/commitdiff
Olaf Flebbe : MSVC 2005 fix because time_t is defined as __int64 and there is no...
authorfredb <fredb>
Tue, 1 Aug 2006 21:09:26 +0000 (21:09 +0000)
committerfredb <fredb>
Tue, 1 Aug 2006 21:09:26 +0000 (21:09 +0000)
src/Airports/dynamics.cxx

index 60289c62336b5a88e9c568c956d386e2d1a09edc..9a3dcacc2c31b940e88deef953488f19a40df090 100644 (file)
@@ -465,7 +465,7 @@ void FGAirportDynamics::getActiveRunway(const string &trafficType, int action, s
       RunwayGroup *currRunwayGroup = 0;
       int nrActiveRunways = 0;
       time_t dayStart = fgGetLong("/sim/time/utc/day-seconds");
-      if ((abs(dayStart - lastUpdate) > 600) || trafficType != prevTrafficType)
+      if ((abs((long)(dayStart - lastUpdate)) > 600) || trafficType != prevTrafficType)
        {
          landing.clear();
          takeoff.clear();