summaryrefslogtreecommitdiff
path: root/navit/osd
diff options
context:
space:
mode:
authortegzed <tegzed@ffa7fe5e-494d-0410-b361-a75ebd5db220>2012-01-02 10:58:47 +0000
committertegzed <tegzed@ffa7fe5e-494d-0410-b361-a75ebd5db220>2012-01-02 10:58:47 +0000
commit8a81b6fb6c34900f1d92e2ff1b6c6edc48e9c20b (patch)
treebae6a2a37625b250f6a24100f12a60d7e80a7c5e /navit/osd
parent2d622cdaee0d9447c7fb81747aefaac1b0dede87 (diff)
downloadnavit-8a81b6fb6c34900f1d92e2ff1b6c6edc48e9c20b.tar.gz
Fix:osd/core:fixed update_period handling in route_guard osd
git-svn-id: http://svn.code.sf.net/p/navit/code/trunk/navit@4884 ffa7fe5e-494d-0410-b361-a75ebd5db220
Diffstat (limited to 'navit/osd')
-rw-r--r--navit/osd/core/osd_core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/navit/osd/core/osd_core.c b/navit/osd/core/osd_core.c
index ff91c2f6a..8159a2e82 100644
--- a/navit/osd/core/osd_core.c
+++ b/navit/osd/core/osd_core.c
@@ -299,9 +299,9 @@ static void osd_route_guard_draw(struct osd_priv_common *opc, struct navit *nav,
gettimeofday(&tv,NULL);
curr_time = (double)(tv.tv_usec)/1000000.0+tv.tv_sec;
if ( this->last_time+this->update_period > curr_time) {
- this->last_time = curr_time;
return;
}
+ this->last_time = curr_time;
if(nav) {
navit_get_attr(nav, attr_vehicle, &vehicle_attr, NULL);
if (vehicle_attr.u.vehicle) {