diff options
author | Snap <snapwilliam@gmail.com> | 2015-05-07 13:07:37 -0700 |
---|---|---|
committer | Snap <snapwilliam@gmail.com> | 2015-05-07 13:07:37 -0700 |
commit | c517b645c8723b5f4d20cbb91cbc4b9f45579cbb (patch) | |
tree | f0a2418290cecd15f20c834bb071ffa9f3694b09 /includes/mapclass.php | |
parent | 9994868ad9a042e425046e0eedf2de83189f0fe6 (diff) | |
download | pathery-c517b645c8723b5f4d20cbb91cbc4b9f45579cbb.tar.xz |
Minor tweaks to map creation.
- Mapeditor disabled
- Major changes to maps.php incoming...
Diffstat (limited to 'includes/mapclass.php')
-rw-r--r-- | includes/mapclass.php | 18 |
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 |