From: Durk Talsma Date: Mon, 14 Nov 2011 16:22:02 +0000 (+0100) Subject: Equate sun angle for morning and afternoon. This is a temporary solution, but should... X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=6fa2b1cbe682f171b3c7895b37705b459e59f7f6;p=flightgear.git Equate sun angle for morning and afternoon. This is a temporary solution, but should give more consistent results for locations that are relatively close to the poles. --- diff --git a/src/Time/TimeManager.cxx b/src/Time/TimeManager.cxx index f19761ef5..eb3bb25a1 100644 --- a/src/Time/TimeManager.cxx +++ b/src/Time/TimeManager.cxx @@ -331,7 +331,7 @@ void TimeManager::setTimeOffset(const std::string& offset_type, long int offset) } else if ( offset_type == "noon" ) { warp = fgTimeSecondsUntilSunAngle( cur_time, lon, lat, 0.0, true ); } else if ( offset_type == "afternoon" ) { - warp = fgTimeSecondsUntilSunAngle( cur_time, lon, lat, 60.0, false ); + warp = fgTimeSecondsUntilSunAngle( cur_time, lon, lat, 75.0, false ); } else if ( offset_type == "dusk" ) { warp = fgTimeSecondsUntilSunAngle( cur_time, lon, lat, 90.0, false ); } else if ( offset_type == "evening" ) {