aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/cli
diff options
context:
space:
mode:
authorRenaud <renaud@rolisteam.org>2015-12-28 20:58:47 +0100
committerRenaud <renaud@rolisteam.org>2015-12-28 20:58:47 +0100
commita7f70afca994c1dbd37230459032c2eca9a99dc9 (patch)
tree1c0eab09a56ad239495d2a3e3c902fa97072a684 /cli
parent8f388a9ec72c7af6832a65ec3cfdd80fa7413492 (diff)
downloadOneRoll-a7f70afca994c1dbd37230459032c2eca9a99dc9.tar.gz
OneRoll-a7f70afca994c1dbd37230459032c2eca9a99dc9.zip
manage homogeneous
Diffstat (limited to 'cli')
-rw-r--r--cli/main.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/cli/main.cpp b/cli/main.cpp
index 80c19a9..dd21ea7 100644
--- a/cli/main.cpp
+++ b/cli/main.cpp
@@ -46,8 +46,6 @@ QTextStream out(stdout, QIODevice::WriteOnly);
QString diceToText(ExportedDiceResult& dice,bool highlight,bool homogeneous)
{
QStringList resultGlobal;
- if(homogeneous)
- {
foreach(int face, dice.keys())
{
QStringList result;
@@ -96,7 +94,7 @@ QString diceToText(ExportedDiceResult& dice,bool highlight,bool homogeneous)
resultGlobal << result;
}
}
- }
+ /* }
else
{
foreach(int face, dice.keys())
@@ -140,7 +138,7 @@ QString diceToText(ExportedDiceResult& dice,bool highlight,bool homogeneous)
resultGlobal << QString(" (%1) ").arg(result.join(','));
}
- }
+ }*/
return resultGlobal.join(' ');
}
@@ -161,7 +159,7 @@ void startDiceParsing(QString& cmd,QString& treeFile,bool highlight)
}
ExportedDiceResult list;
- bool homogeneous;
+ bool homogeneous = true;
parser->getLastDiceResult(list,homogeneous);
QString diceText = diceToText(list,highlight,homogeneous);
QString scalarText;