summaryrefslogtreecommitdiffstats
path: root/includes
diff options
context:
space:
mode:
authorPatrick Davison <snapwilliam@gmail.com>2013-04-09 01:08:02 -0700
committerPatrick Davison <snapwilliam@gmail.com>2013-04-09 01:08:02 -0700
commitdf11c5da2c6e91a2c079308d62110995352d76f5 (patch)
tree2063df473aa608fcb29002ad2fd2cae722c78c89 /includes
parentc805c944aa93641dfacf7724dec8716096d4072e (diff)
downloadpathery-df11c5da2c6e91a2c079308d62110995352d76f5.tar.xz
MapEditor improvements
Diffstat (limited to 'includes')
-rw-r--r--includes/mapclass.php3
-rw-r--r--includes/maps.php1
2 files changed, 4 insertions, 0 deletions
diff --git a/includes/mapclass.php b/includes/mapclass.php
index 24b9108..c4d95e9 100644
--- a/includes/mapclass.php
+++ b/includes/mapclass.php
@@ -295,6 +295,9 @@ class map {
$oldNames['r'] = 'r';
$oldNames['r2'] = 'R';
+
+ $oldNames['q'] = 'q';
+ $oldNames['p'] = 'p';
for( $i = 0; $i < $this->height; $i++) {
for( $j = 0; $j < $this->width; $j++) {
diff --git a/includes/maps.php b/includes/maps.php
index 1af64a2..ec338d7 100644
--- a/includes/maps.php
+++ b/includes/maps.php
@@ -355,6 +355,7 @@ function GenerateMap($rows, $cols, $rockchance, $numBlocks = -1, $cp = -1, $tp =
if ($tp == -1)
$tp = rand(0, 2);
$tp = $tp * 2; //Requires an out-teleport.
+ if ($rockchance < 2) $rockchance = 2;
//== Possibility of inf loop here, if the map is too small.
do {