aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/result
diff options
context:
space:
mode:
authorRenaud G <renaud@rolisteam.org>2018-09-28 10:28:24 +0200
committerRenaud G <renaud@rolisteam.org>2018-09-28 10:28:24 +0200
commit8bb4e7a3befc6ce549b631d8a83b9ba69ed73b7a (patch)
tree2467c46f22424fadb36fdb9470f4adaaaa6f8da8 /result
parent49567f95bf6985707fcf8c2836c761ce39602636 (diff)
downloadOneRoll-8bb4e7a3befc6ce549b631d8a83b9ba69ed73b7a.tar.gz
OneRoll-8bb4e7a3befc6ce549b631d8a83b9ba69ed73b7a.zip
add integer division operator
Diffstat (limited to 'result')
-rw-r--r--result/diceresult.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/result/diceresult.cpp b/result/diceresult.cpp
index ce59cb1..7894b60 100644
--- a/result/diceresult.cpp
+++ b/result/diceresult.cpp
@@ -115,6 +115,7 @@ qreal DiceResult::getScalarResult()
scalar-=tmp->getValue();
break;
case Die::DIVIDE:
+ case Die::INTEGER_DIVIDE:
if(tmp->getValue()!=0)
{
scalar/=tmp->getValue();