diff options
author | BlueRaja <BlueRaja.admin@gmail.com> | 2012-08-25 05:43:26 -0500 |
---|---|---|
committer | BlueRaja <BlueRaja.admin@gmail.com> | 2012-08-25 05:43:26 -0500 |
commit | 8e639fd6cccecb3f23f727ef1f00f7e9851ea04e (patch) | |
tree | 26260fbe93294728d294a5f14fc72bd908013dbd /includes/maps.php | |
parent | 73d12dd8c33eb6ebeee4143707cb59f701936945 (diff) | |
download | pathery-8e639fd6cccecb3f23f727ef1f00f7e9851ea04e.tar.xz |
Fixing various javascript warnings, as well as renaming all //!! comments to //TODO
Diffstat (limited to 'includes/maps.php')
-rw-r--r-- | includes/maps.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/includes/maps.php b/includes/maps.php index e322bc4..05559b4 100644 --- a/includes/maps.php +++ b/includes/maps.php @@ -349,7 +349,7 @@ function GenerateMap($rows, $cols, $rockchance, $numBlocks = -1, $cp = -1, $tp = } elseif (rand(1, $rockchance) == 2) {
$grid[$y][$x] = "r";
$rocks++;
- //!! rock count could be off if covered by checkpoint.
+ //TODO: rock count could be off if covered by checkpoint.
//Just a normal square.
} else {
$grid[$y][$x] = "o";
@@ -836,7 +836,7 @@ function findPath($mapMatrix, $start = '0,1', $target = 'f', $isBlockedByX = fal $path = $mapMatrix[$y][$x];
case "o": //Available squares
- // !!
+ // TODO:
case "p":
case "s": case "f": //Start and end tiles
@@ -917,7 +917,7 @@ function routePath($mygrid, $validate = false, $traverseBackwards = false) { if ($traverseBackwards)
$cpnames = array("e", "d", "c", "b", "a");
- //!! Improve the 'findTiles' function to prevent duplicate itterations.
+ //TODO: Improve the 'findTiles' function to prevent duplicate itterations.
//Add the existing checkpoints to target array.
foreach ($cpnames as $cpt)
if (findTiles($mygrid, $cpt))
|