# HG changeset patch # User Matti Hamalainen # Date 1294494431 -7200 # Node ID f74739f637cfa5377cf2792a09169348a5ba7703 # Parent 72c78e1e2b3c658ca1029e97225650cbbbdbff5e Updates. diff -r 72c78e1e2b3c -r f74739f637cf tools/makegmaps.php --- a/tools/makegmaps.php Sat Jan 08 15:43:47 2011 +0200 +++ b/tools/makegmaps.php Sat Jan 08 15:47:11 2011 +0200 @@ -2,8 +2,10 @@ "markers.xml", @@ -11,18 +13,7 @@ "labels" => "overlaylabels.txt", ); - -$continentList = array( - // ID Name Xoffs Yoffs spec hasmap - "laenor" => array("Laenor", 1 , 1 , FALSE , TRUE ), - "rothikgen" => array("Rothikgen", 1311 , -1255 , FALSE , TRUE ), - "lucentium" => array("Lucentium", -634 , 2345 , FALSE , TRUE ), - "furnachia" => array("Furnachia", 1211 , 1155 , FALSE , TRUE ), - "desolathya" => array("Desolathya", -1210 , 820 , FALSE , TRUE ), - - "renardy" => array("Renardy", 2068 , -910 , TRUE , TRUE ), - "limbo" => array("Limbo", 0 , 0 , TRUE , FALSE ), -); +require "world.php"; $args = ""; @@ -31,15 +22,15 @@ $args .= "-l ".escapeshellarg($locPath.$name.".loc")." ". "-c ".escapeshellarg($t[0])." ". - "-x ".escapeshellarg(8192 + $t[1])." ". - "-y ".escapeshellarg(8192 + $t[2])." "; + "-x ".escapeshellarg($worldMap["ox"] + $t[1])." ". + "-y ".escapeshellarg($worldMap["oy"] + $t[2])." "; } } foreach ($modes as $mode => $file) { $tmp = escapeshellcmd($mkloc)." -v -o ".escapeshellarg($outPath.$file)." -G ".$mode." ".$args; - passthru(escapeshellcmd($mkloc)." -v -o ".escapeshellarg($outPath.$file)." -G ".$mode." ".$args) == 0 or - die("Error executing ".$mkloc.".\n"); + passthru($tmp) == 0 or die("Error executing: ".$tmp."\n"); } + ?> \ No newline at end of file