summaryrefslogtreecommitdiffstats
path: root/includes/mapclass.php
diff options
context:
space:
mode:
authorPatrick Davison <snapwilliam@gmail.com>2013-02-20 02:07:26 -0800
committerPatrick Davison <snapwilliam@gmail.com>2013-02-20 02:07:26 -0800
commit7ae48075590b09e4892daf1e218ef32c6717bfc0 (patch)
tree0fcf98722862d836fa927729d7cc5f7469189c68 /includes/mapclass.php
parent6352b54fcd4fb87b7d1e53b818ab1df903b282c1 (diff)
downloadpathery-7ae48075590b09e4892daf1e218ef32c6717bfc0.tar.xz
Added the mapcode to the map-object - temporarly at least.
Diffstat (limited to 'includes/mapclass.php')
-rw-r--r--includes/mapclass.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/includes/mapclass.php b/includes/mapclass.php
index 5f28c85..9e91d3f 100644
--- a/includes/mapclass.php
+++ b/includes/mapclass.php
@@ -49,6 +49,7 @@ class map {
public function applyMapFromOldCode($code) {
//echo "decoding mapcode: [$code]";
+ $this->code = $code;
unset($this->tiles);
$tmp = explode( ":", $code);
@@ -144,8 +145,7 @@ class map {
//From the newer mapcode.
public function applyMapFromCode($code) {
- //TODO: Uncomment this when testing is complete; to boost getCode() speed;
- //$this->$code = $code;
+ $this->code = $code;
unset($this->tiles);
$tmp = explode( ":", $code);