Olaf Flebbe : MSVC 2005 fix because time_t is defined as __int64 and there is no abs for this datatype
This commit is contained in:
parent
b1a4fa24d4
commit
762c7ddb89
1 changed files with 1 additions and 1 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Reference in a new issue