summaryrefslogtreecommitdiffstats
path: root/pages
diff options
context:
space:
mode:
authorBlueRaja <BlueRaja.admin@gmail.com>2013-06-08 14:56:35 -0500
committerBlueRaja <BlueRaja.admin@gmail.com>2013-06-08 14:56:35 -0500
commitf04b70c9c12daf0e91c591a732566ab8e5b4752c (patch)
tree298b8017ae8f10d117019f86183883205ffe40f9 /pages
parentd64af3489dc17c011394b9facedacb0d27169e67 (diff)
downloadpathery-f04b70c9c12daf0e91c591a732566ab8e5b4752c.tar.xz
Prevent curse from crashing the server with the map editor
Diffstat (limited to 'pages')
-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');