]> git.mxchange.org Git - simgear.git/blobdiff - simgear/timing/sg_time.cxx
Doh! fixed a typo ...
[simgear.git] / simgear / timing / sg_time.cxx
index ee2fe8c278abe467c225df7fb7b3e69eec5ecfe4..698ae0080d085adb60e20a9102513b6840b987fc 100644 (file)
@@ -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;
     }