summaryrefslogtreecommitdiffstats
path: root/includes/mapclass.php
diff options
context:
space:
mode:
authorBlueRaja <BlueRaja.admin@gmail.com>2015-05-07 23:14:47 -0500
committerBlueRaja <BlueRaja.admin@gmail.com>2015-05-07 23:14:47 -0500
commit3dc3919ce1b5336861979cde56884842615c967b (patch)
treef0a2418290cecd15f20c834bb071ffa9f3694b09 /includes/mapclass.php
parent29e872fbc6c552ef02208fe9fa5416b69773aa38 (diff)
parentc517b645c8723b5f4d20cbb91cbc4b9f45579cbb (diff)
downloadpathery-3dc3919ce1b5336861979cde56884842615c967b.tar.xz
Merge branch 'master' of git.raylu.net:pathery
Diffstat (limited to 'includes/mapclass.php')
-rw-r--r--includes/mapclass.php21
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