diff options
| author | 2015-04-22 10:57:53 +0200 | |
|---|---|---|
| committer | 2015-04-22 10:57:53 +0200 | |
| commit | d4c03f1eb5627294df3675de2e8e55fd721e37d8 (patch) | |
| tree | cd370ad96b2f5b1137d9cd0a2974ff6dd7ef7541 | |
| parent | 5938230cc183b562ab076dd46dabcaf325a21157 (diff) | |
| download | OneRoll-d4c03f1eb5627294df3675de2e8e55fd721e37d8.tar.gz OneRoll-d4c03f1eb5627294df3675de2e8e55fd721e37d8.zip | |
management of highligth dice
| -rw-r--r-- | node/countexecutenode.cpp | 2 | ||||
| -rw-r--r-- | node/keepdiceexecnode.cpp | 5 |
2 files changed, 6 insertions, 1 deletions
diff --git a/node/countexecutenode.cpp b/node/countexecutenode.cpp index 1050efc..ff3d67b 100644 --- a/node/countexecutenode.cpp +++ b/node/countexecutenode.cpp @@ -35,7 +35,7 @@ void CountExecuteNode::run(ExecutionNode *previous) qint64 sum = 0; foreach(Die* dice,diceList) { - sum+=m_validator->hasValid(dice,true); + sum+=m_validator->hasValid(dice,true,true); } m_scalarResult->setValue(sum); diff --git a/node/keepdiceexecnode.cpp b/node/keepdiceexecnode.cpp index 62b4c8f..e8cfac8 100644 --- a/node/keepdiceexecnode.cpp +++ b/node/keepdiceexecnode.cpp @@ -26,6 +26,11 @@ m_previousNode = previous; diceList2 = diceList.mid(0,m_numberOfDice); + foreach(Die* tmp,diceList.mid(m_numberOfDice,-1)) + { + tmp->setHighlighted(false); + } + m_diceResult->setResultList(diceList2); if(NULL!=m_nextNode) { |