summaryrefslogtreecommitdiffstats
path: root/pages
diff options
context:
space:
mode:
authorSnap <snapwilliam@gmail.com>2015-05-07 13:07:37 -0700
committerSnap <snapwilliam@gmail.com>2015-05-07 13:07:37 -0700
commitc517b645c8723b5f4d20cbb91cbc4b9f45579cbb (patch)
treef0a2418290cecd15f20c834bb071ffa9f3694b09 /pages
parent9994868ad9a042e425046e0eedf2de83189f0fe6 (diff)
downloadpathery-c517b645c8723b5f4d20cbb91cbc4b9f45579cbb.tar.xz
Minor tweaks to map creation.
- Mapeditor disabled - Major changes to maps.php incoming...
Diffstat (limited to 'pages')
-rw-r--r--pages/mapeditor.php10
1 files changed, 7 insertions, 3 deletions
diff --git a/pages/mapeditor.php b/pages/mapeditor.php
index ec02bb6..f67cad1 100644
--- a/pages/mapeditor.php
+++ b/pages/mapeditor.php
@@ -3,6 +3,10 @@ include_once('./includes/maps.php');
include_once('./includes/mapclass.php');
include_once('./includes/mapoftheday.php');
+echo "too broken; will fix soon";
+
+exit;
+
//Self-ajax.
if ($_REQUEST['mapByCode']) {
$map = new map($_REQUEST['mapByCode']);
@@ -27,7 +31,7 @@ if ($_REQUEST['mapByMap']) {
}
if ($_REQUEST['genMap']) {
-
+/*
$map = GenerateMap(
normalizeNumber($_REQUEST['width'], 50, 6),
normalizeNumber($_REQUEST['height'], 50, 6),
@@ -36,8 +40,8 @@ if ($_REQUEST['genMap']) {
normalizeNumber($_REQUEST['checkpoints'], 5, 0),
normalizeNumber($_REQUEST['teleports'], 5, 0)
);
-
- //$map = getRandomSpecialMap();
+ */
+ $map = getRandomSpecialMap();
$code = GenerateMapCode($map);