Don't try to fetch tiles when lat or lon are invalid
This commit is contained in:
parent
6fa20b5903
commit
359ab0c207
1 changed files with 9 additions and 7 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue