1
0
mirror of https://github.com/vichan-devel/vichan.git synced 2025-02-18 03:37:35 +01:00

More dice limits

This commit is contained in:
Fredrick Brennan 2014-09-20 15:20:22 +00:00
parent d486fc4e44
commit b8a3ef5b56

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;
}