On Friday 04 January 2008 16:23, Robert Hailey wrote:
> 
> On Jan 4, 2008, at 8:53 AM, Matthew Toseland wrote:
> > location > 1.0 is possible if the node set it too high and told us,  
> > no?
> 
> No... AFAICS currentLocation is private, the only time it is not set  
> to a constant (-1) is from "Location.getLocation(locationString);" or  
> "updateLocation(double newLoc);".
> 
> updateLocation() has an explicit guard against setting it beyond 0&1,  
> and getLocation() will throw a parse exception if it is beyond 0&1.
> 
> In fact, rather than setting currentLocation to -1, we could probably  
> set isRoutable=false and it would be even simpler.

Good idea - but won't it get reset?

Attachment: pgph7v9gT7LqZ.pgp
Description: PGP signature

_______________________________________________
Devl mailing list
[email protected]
http://emu.freenetproject.org/cgi-bin/mailman/listinfo/devl

Reply via email to