From 7d96f3ef18d01f78be16c5023e633e7ae2f59d08 Mon Sep 17 00:00:00 2001 From: CBenni Date: Sun, 7 Jan 2018 03:20:48 +0100 Subject: [PATCH] Fixed /shoot position to not exceed the image bounds --- config.default.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config.default.json b/config.default.json index 4669171..e6d82ed 100644 --- a/config.default.json +++ b/config.default.json @@ -287,13 +287,13 @@ "x": { "absolute": true, "position": 0, - "offset": "Math.random()*imgWidth", + "offset": "Math.random()*(imgWidth - 123/5)", "size": "123*5" }, "y": { "absolute": true, "position": 0, - "offset": "Math.random()*imgHeight", + "offset": "Math.random()*(imgHeight - 130/5)", "size": "130*5" } }