diff options
author | Patrick Davison <snapwilliam@gmail.com> | 2011-09-09 22:01:06 -0700 |
---|---|---|
committer | Patrick Davison <snapwilliam@gmail.com> | 2011-09-09 22:01:06 -0700 |
commit | 73ff6a197dd25315b76d9469e6783383dcc858c2 (patch) | |
tree | b8a2e0499de1eefee22e7e609851735f79b6bdcd /includes/maps.php | |
parent | c37113c2666d65015f967b6cf1a5d2e8836d920d (diff) | |
download | pathery-73ff6a197dd25315b76d9469e6783383dcc858c2.tar.xz |
Minor error regarding plausibly non-existant array.
Diffstat (limited to 'includes/maps.php')
-rw-r--r-- | includes/maps.php | 6 |
1 files changed, 4 insertions, 2 deletions
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))
|