1
0
mirror of https://github.com/vichan-devel/vichan.git synced 2025-02-18 11:44:12 +01:00

Arbitrary maximum dice

This commit is contained in:
8chan 2014-08-30 20:07:08 +00:00
parent 34223cdbb7
commit 41f2255e51

View File

@ -2360,6 +2360,11 @@ function diceRoller($post) {
$diceY = intval($diceY);
$diceZ = intval($diceZ);
// Arbitrary maximum number of dice
if ($diceX > 200) {
$diceX = 200;
}
// Continue only if we have valid values
if($diceX > 0 && $diceY > 0) {
$dicerolls = array();