Fixed /shoot position to not exceed the image bounds

This commit is contained in:
CBenni 2018-01-07 03:20:48 +01:00
parent 978d9c4c12
commit 7d96f3ef18

View file

@ -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"
}
}