]> Pileus Git - aweather/commitdiff
Decrease distance to needed load radar
authorAndy Spencer <andy753421@gmail.com>
Mon, 7 Feb 2011 09:45:30 +0000 (09:45 +0000)
committerAndy Spencer <andy753421@gmail.com>
Mon, 7 Feb 2011 09:45:30 +0000 (09:45 +0000)
This helps prevent excess radars from being loaded.

src/main.c
src/plugins/radar.c

index 1e6aea6710a3ed5a59f232feb8fa35bdab153fef..a398e7818c038e8161efddde591aafd312fee93b 100644 (file)
@@ -63,7 +63,7 @@ gboolean set_location_time(AWeatherGui *gui, char *site, char *time)
        for (city_t *city = cities; city->type; city++) {
                if (city->type == LOCATION_CITY && g_str_equal(city->code, site)) {
                        grits_viewer_set_location(gui->viewer,
        for (city_t *city = cities; city->type; city++) {
                if (city->type == LOCATION_CITY && g_str_equal(city->code, site)) {
                        grits_viewer_set_location(gui->viewer,
-                               city->pos.lat, city->pos.lon, EARTH_R/25);
+                               city->pos.lat, city->pos.lon, EARTH_R/35);
                        break;
                }
        }
                        break;
                }
        }
index a37ce5b1c22a129243b568f2ed26c55b25f7ab33..7ca05d4d19299608634811f8f9bac4207a5d1eae 100644 (file)
@@ -288,7 +288,7 @@ void _site_on_location_changed(GritsViewer *viewer,
                gdouble lat, gdouble lon, gdouble elev,
                gpointer _site)
 {
                gdouble lat, gdouble lon, gdouble elev,
                gpointer _site)
 {
-       static gdouble min_dist = EARTH_R / 20;
+       static gdouble min_dist = EARTH_R / 30;
        RadarSite *site = _site;
 
        /* Calculate distance, could cache xyz values */
        RadarSite *site = _site;
 
        /* Calculate distance, could cache xyz values */