From f04b70c9c12daf0e91c591a732566ab8e5b4752c Mon Sep 17 00:00:00 2001 From: BlueRaja Date: Sat, 8 Jun 2013 14:56:35 -0500 Subject: Prevent curse from crashing the server with the map editor --- pages/mapeditor.php | 2 ++ 1 file changed, 2 insertions(+) (limited to 'pages') 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'); -- cgit v1.2.3