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:
parent
34223cdbb7
commit
41f2255e51
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user