forked from GithubBackups/vichan
More dice limits
This commit is contained in:
parent
4e6bb9ad97
commit
e972548ae2
@ -2360,7 +2360,11 @@ function diceRoller($post) {
|
|||||||
$diceY = intval($diceY);
|
$diceY = intval($diceY);
|
||||||
$diceZ = intval($diceZ);
|
$diceZ = intval($diceZ);
|
||||||
|
|
||||||
// Arbitrary maximum number of dice
|
// Apply sane limits
|
||||||
|
if ($diceY > 1024) {
|
||||||
|
$diceY = 1024;
|
||||||
|
}
|
||||||
|
|
||||||
if ($diceX > 200) {
|
if ($diceX > 200) {
|
||||||
$diceX = 200;
|
$diceX = 200;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user