diff options
Diffstat (limited to 'includes/mapclass.php')
-rw-r--r-- | includes/mapclass.php | 21 |
1 files changed, 5 insertions, 16 deletions
diff --git a/includes/mapclass.php b/includes/mapclass.php index 8e9f28e..644c613 100644 --- a/includes/mapclass.php +++ b/includes/mapclass.php @@ -53,7 +53,8 @@ class map { } } - + + public function applyMapFromOldCode($code) { //echo "decoding mapcode: [$code]"; $this->code = $code; @@ -236,6 +237,7 @@ class map { $headers[7] = $this->dateExpires; $code = implode(".", $headers).':'; + $position = 0; for ($y = 0; $y < $this->height; $y++) { //Number of Rows for ($x = 0; $x < $this->width; $x++) { //Number of Columns @@ -253,7 +255,7 @@ class map { return $code; } - function getOldCode() { + public function getOldCode() { $code = ""; //The string to return to the database. $index = 0; //The current number of tiles from the last tile saved. @@ -304,7 +306,6 @@ class map { if($this->tiles[$i][$j][0] != 'o') { //As long as the tile is NOT open, embed it in the code. - $type = $this->tiles[$i][$j][0]; $value = $this->tiles[$i][$j][1]; if ($value <= 1) $value = ''; @@ -332,16 +333,4 @@ class map { } - - - - - - - - - - - - -?> +?>
\ No newline at end of file |