From 6fa2b1cbe682f171b3c7895b37705b459e59f7f6 Mon Sep 17 00:00:00 2001 From: Durk Talsma Date: Mon, 14 Nov 2011 17:22:02 +0100 Subject: [PATCH] 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. --- src/Time/TimeManager.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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" ) { -- 2.39.5