From 8e639fd6cccecb3f23f727ef1f00f7e9851ea04e Mon Sep 17 00:00:00 2001 From: BlueRaja Date: Sat, 25 Aug 2012 05:43:26 -0500 Subject: Fixing various javascript warnings, as well as renaming all //!! comments to //TODO --- includes/datas.php | 4 ++-- includes/mapoftheday.php | 2 +- includes/maps.php | 6 +++--- 3 files changed, 6 insertions(+), 6 deletions(-) (limited to 'includes') diff --git a/includes/datas.php b/includes/datas.php index 0041da2..d64776c 100644 --- a/includes/datas.php +++ b/includes/datas.php @@ -182,7 +182,7 @@ function getNotified($userID) { //Returns true when an achievement is applied. // Usage example: applyCareerAchievement($userID); -// !! DEPRECIATED +// TODO: DEPRECIATED function applyCareerPathAchievements($userID) { $sql = "SELECT SUM(solutions.moves) as totalMoves @@ -236,7 +236,7 @@ function applyCareerPathAchievements($userID) { } //Almost a duplicate of applyCareerPathAchievements -// !! DEPRECIATED +// TODO: DEPRECIATED function applyCareerMazesAchievements($userID) { $sql = "SELECT COUNT(*) as totalSolutions diff --git a/includes/mapoftheday.php b/includes/mapoftheday.php index c5b9834..a695ed1 100644 --- a/includes/mapoftheday.php +++ b/includes/mapoftheday.php @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file 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)) -- cgit v1.2.3