More dice limits

This commit is contained in:
Fredrick Brennan 2014-09-20 15:20:22 +00:00
parent 4e6bb9ad97
commit e972548ae2

View File

@ -2360,7 +2360,11 @@ function diceRoller($post) {
$diceY = intval($diceY);
$diceZ = intval($diceZ);
// Arbitrary maximum number of dice
// Apply sane limits
if ($diceY > 1024) {
$diceY = 1024;
}
if ($diceX > 200) {
$diceX = 200;
}