From: Andy Spencer Date: Mon, 7 Feb 2011 09:45:30 +0000 (+0000) Subject: Decrease distance to needed load radar X-Git-Tag: v0.5~24 X-Git-Url: http://pileus.org/git/?p=aweather;a=commitdiff_plain;h=880df66f0fc89dd1bd1f8d2232cd80592b7b91c5 Decrease distance to needed load radar This helps prevent excess radars from being loaded. --- diff --git a/src/main.c b/src/main.c index 1e6aea6..a398e78 100644 --- a/src/main.c +++ b/src/main.c @@ -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, - city->pos.lat, city->pos.lon, EARTH_R/25); + city->pos.lat, city->pos.lon, EARTH_R/35); break; } } diff --git a/src/plugins/radar.c b/src/plugins/radar.c index a37ce5b..7ca05d4 100644 --- a/src/plugins/radar.c +++ b/src/plugins/radar.c @@ -288,7 +288,7 @@ void _site_on_location_changed(GritsViewer *viewer, 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 */