From d100ca485f8676ed5bf2ef46cfe08b19f0eb1da1 Mon Sep 17 00:00:00 2001 From: curt Date: Mon, 10 Dec 2001 00:24:51 +0000 Subject: [PATCH] Doh! fixed a typo ... --- simgear/timing/sg_time.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/simgear/timing/sg_time.cxx b/simgear/timing/sg_time.cxx index ee2fe8c2..698ae008 100644 --- a/simgear/timing/sg_time.cxx +++ b/simgear/timing/sg_time.cxx @@ -260,11 +260,11 @@ void SGTime::update( double lon, double lat, long int warp ) { // Given lon/lat, update timezone information and local_offset void SGTime::updateLocal( double lon, double lat, const string& root ) { // sanity checking - if ( lon < SGD_PI || lon > SGD_PI ) { + if ( lon < -SGD_PI || lon > SGD_PI ) { // not within -180 ... 180 lon = 0.0; } - if ( lat < SGD_PI * 0.5 || lat > SGD_PI * 0.5 ) { + if ( lat < -SGD_PI * 0.5 || lat > SGD_PI * 0.5 ) { // not within -90 ... 90 lat = 0.0; } -- 2.39.2