From 73ff6a197dd25315b76d9469e6783383dcc858c2 Mon Sep 17 00:00:00 2001 From: Patrick Davison Date: Fri, 9 Sep 2011 22:01:06 -0700 Subject: Minor error regarding plausibly non-existant array. --- includes/maps.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'includes') diff --git a/includes/maps.php b/includes/maps.php index 0f6dfd8..7be04eb 100644 --- a/includes/maps.php +++ b/includes/maps.php @@ -774,7 +774,7 @@ function routePath($mygrid, $start = '', $validate = false) { $start = findTiles($mygrid, "s"); //Checkpoint names - $cpnames = Array("a", "b", "c", "d", "e"); + $cpnames = array("a", "b", "c", "d", "e"); //Add the existing checkpoints to target array. @@ -789,7 +789,7 @@ function routePath($mygrid, $start = '', $validate = false) { $blocked = false; //All possible teleports in play. - $tpnames = Array('t', 'm', 'g', 'i', 'k'); + $tpnames = array('t', 'm', 'g', 'i', 'k'); //Where there's an in, there's an out. $teleout['t'] = 'u'; @@ -798,6 +798,8 @@ function routePath($mygrid, $start = '', $validate = false) { $teleout['i'] = 'j'; $teleout['k'] = 'l'; + $teleport = array(); + //Find all the existing teleports. foreach ($tpnames as $tpt) if (findTiles($mygrid, $tpt)) -- cgit v1.2.3