1
0
Fork 0

Don't try to fetch tiles when lat or lon are invalid

This commit is contained in:
fredb 2008-12-21 09:29:33 +00:00
parent 6fa20b5903
commit 359ab0c207

View file

@ -293,6 +293,8 @@ static void parse_message( const string &msg, int *lat, int *lon ) {
// sync area
static void sync_area( int lat, int lon ) {
if ( lat < -90 || lat > 90 || lon < -180 || lon > 180 )
return;
char NS, EW;
int baselat, baselon;