Changeset 1791
- Timestamp:
- 09/06/10 19:25:43 (17 months ago)
- Files:
-
- 1 modified
-
trunk/lib/vlm-c/waypoint.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/vlm-c/waypoint.c
r1790 r1791 1 1 /** 2 * $Id: waypoint.c,v 1.1 0 2010-09-06 19:16:40ylafon Exp $2 * $Id: waypoint.c,v 1.11 2010-09-06 19:24:25 ylafon Exp $ 3 3 * 4 4 * (c) 2008 by Yves Lafon … … 225 225 intersect_ratio * (current_longitude - prev_longitude); 226 226 *intersection = intersect_ratio; 227 isect = 1; 227 } else { 228 /* should not happen, but let's be safe here */ 229 *isect_latitude = yToLat(current_latitude); 230 *isect_longitude = current_longitude; 231 *intersection = 1; 228 232 } 233 isect = 1; 229 234 } 230 235 } … … 266 271 intersect_ratio * (current_longitude - prev_longitude); 267 272 *intersection = intersect_ratio; 268 isect = 1; 273 } else { 274 /* should not happen, but let's be safe here */ 275 *isect_latitude = yToLat(current_latitude); 276 *isect_longitude = current_longitude; 277 *intersection = 1; 269 278 } 270 279 }
