1
0
Fork 0

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:
fredb 2006-08-01 21:09:26 +00:00
parent b1a4fa24d4
commit 762c7ddb89

View 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();