summaryrefslogtreecommitdiffstats
path: root/includes/mapclass.php
diff options
context:
space:
mode:
Diffstat (limited to 'includes/mapclass.php')
-rw-r--r--includes/mapclass.php18
1 files changed, 3 insertions, 15 deletions
diff --git a/includes/mapclass.php b/includes/mapclass.php
index 2da7e11..644c613 100644
--- a/includes/mapclass.php
+++ b/includes/mapclass.php
@@ -237,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
@@ -254,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.
@@ -305,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 = '';
@@ -333,16 +333,4 @@ class map {
}
-
-
-
-
-
-
-
-
-
-
-
-
-?>
+?> \ No newline at end of file