diff options
author | Luke Shumaker <LukeShu@sbcglobal.net> | 2011-08-09 14:14:46 -0400 |
---|---|---|
committer | Luke Shumaker <LukeShu@sbcglobal.net> | 2011-08-09 14:14:46 -0400 |
commit | 03b520370f6185d8604bc4068e8ac319c67e8703 (patch) | |
tree | e3c30ad52788403d2063a10d2d2e73404010b7e8 /roll.php | |
parent | 01413023fcd6a87159b43bd5a80b9848bbe50bd6 (diff) |
Fix warning in roll.php, generate .gitignore on the fly
Diffstat (limited to 'roll.php')
-rw-r--r-- | roll.php | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -6,7 +6,7 @@ $string = $argv[1]; preg_match('/([0-9]*)d([0-9]+)(([+-][0-9]+))?/', $string, $matches); $dice = (int)$matches[1]; $die_size = (int)$matches[2]; -$mod = (int)$matches[3]; +@$mod = (int)$matches[3]; if ($dice<1) $dice = 1; |