summaryrefslogtreecommitdiffstats
path: root/pages/mapeditor.php
diff options
context:
space:
mode:
Diffstat (limited to 'pages/mapeditor.php')
-rw-r--r--pages/mapeditor.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/pages/mapeditor.php b/pages/mapeditor.php
index b86aa14..9e1e57c 100644
--- a/pages/mapeditor.php
+++ b/pages/mapeditor.php
@@ -180,6 +180,8 @@ function updateName() {
}
function changeDimensions(width, height) {
+ width = Math.Min(width, 50);
+ height = Math.Min(height, 50);
testMap.tiles = constructTiles(width, height, testMap);
//testMap.tiles[0][3] = Array('s');