From 7ae48075590b09e4892daf1e218ef32c6717bfc0 Mon Sep 17 00:00:00 2001 From: Patrick Davison Date: Wed, 20 Feb 2013 02:07:26 -0800 Subject: Added the mapcode to the map-object - temporarly at least. --- includes/mapclass.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'includes') 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); -- cgit v1.2.3