Fixed /shoot position to not exceed the image bounds
This commit is contained in:
parent
978d9c4c12
commit
7d96f3ef18
1 changed files with 2 additions and 2 deletions
|
@ -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"
|
||||
}
|
||||
}
|
||||
|
|
Reference in a new issue