changeset 229:ccd79b97dc52 gmap2

Don't attempt to generate tile data from non-existent virtual continents.
author Matti Hamalainen <ccr@tnsp.org>
date Sat, 15 Mar 2014 15:48:40 +0200
parents 2be6060df6cc
children c5a06121ed95
files tools/makegmaps.php
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/tools/makegmaps.php	Sat Mar 15 15:14:21 2014 +0200
+++ b/tools/makegmaps.php	Sat Mar 15 15:48:40 2014 +0200
@@ -516,6 +516,9 @@
 
   foreach ($continentList as $continent => $data)
   {
+    if (!$data[4] || !$data[7])
+      continue;
+    
     $cx = $data[1] + $worldMap["ox"];
     $cy = $data[2] + $worldMap["oy"];
     $cw = $data[5];