diff options
| author | Jules Laplace <jules@okfoc.us> | 2014-11-13 18:33:39 -0500 |
|---|---|---|
| committer | Jules Laplace <jules@okfoc.us> | 2014-11-13 18:33:39 -0500 |
| commit | bc4517c6b09e03f52161dc38ca591ed0cc227d5d (patch) | |
| tree | 435066ecb54c004a8d4cf9e9f332c2099816fd2f /public/assets/javascripts/rectangles/engine/map/ui_editor.js | |
| parent | 2017cf240fc1576e81a6fb9a53439f9fe76653e5 (diff) | |
toggle global height
Diffstat (limited to 'public/assets/javascripts/rectangles/engine/map/ui_editor.js')
| -rw-r--r-- | public/assets/javascripts/rectangles/engine/map/ui_editor.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/public/assets/javascripts/rectangles/engine/map/ui_editor.js b/public/assets/javascripts/rectangles/engine/map/ui_editor.js index c838b8b..44ca91d 100644 --- a/public/assets/javascripts/rectangles/engine/map/ui_editor.js +++ b/public/assets/javascripts/rectangles/engine/map/ui_editor.js @@ -42,6 +42,7 @@ Map.UI.Editor = function(map){ cursor.y.div(map.dimensions.b).sub(0.5).mul(map.dimensions.b / map.zoom).sub(map.center.b) if (e.ctrlKey || e.which === 3) { + if (Rooms.regions.length == 0) return cursor.quantize(1/map.zoom) map.center.a = cursor.x.a map.center.b = -cursor.y.a |
