summaryrefslogtreecommitdiffstats
path: root/includes/maps.php
diff options
context:
space:
mode:
authorPatrick Davison <snapwilliam@gmail.com>2011-09-09 22:01:06 -0700
committerPatrick Davison <snapwilliam@gmail.com>2011-09-09 22:01:06 -0700
commit73ff6a197dd25315b76d9469e6783383dcc858c2 (patch)
treeb8a2e0499de1eefee22e7e609851735f79b6bdcd /includes/maps.php
parentc37113c2666d65015f967b6cf1a5d2e8836d920d (diff)
downloadpathery-73ff6a197dd25315b76d9469e6783383dcc858c2.tar.xz
Minor error regarding plausibly non-existant array.
Diffstat (limited to 'includes/maps.php')
-rw-r--r--includes/maps.php6
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))