aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorKristian Lyngstol <kristian@bohemians.org>2016-05-19 12:24:50 +0200
committerKristian Lyngstol <kristian@bohemians.org>2016-05-19 12:24:50 +0200
commit1202c0524dd8b5ae84c1094be8c2afdb34a5cf70 (patch)
tree98cd2743adf93927ad281da4193ac9e351e4cdb0 /include
parentb417abd95fca765f12bee1b94fdebd48f701e56b (diff)
Increase area used by random fallback placement of switches
Got tired of hogging the upper left corner
Diffstat (limited to 'include')
-rw-r--r--include/nms/util.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/nms/util.pm b/include/nms/util.pm
index 8c5b9d8..d2382f9 100644
--- a/include/nms/util.pm
+++ b/include/nms/util.pm
@@ -124,8 +124,8 @@ sub guess_placement {
} else {
# Fallback to have _some_ position
$src = "random";
- $x = int(rand(500));
- $y = int(rand(500));
+ $x = int(rand(1900));
+ $y = int(rand(900));
$xx = $x + 20;
$yy = $y + 130;
};