diff options
| author | 2018-10-27 00:35:15 +0200 | |
|---|---|---|
| committer | 2018-11-09 23:49:14 +0100 | |
| commit | 4a6b19b27866326fa069a422ed2c862ab9e9d4d2 (patch) | |
| tree | cff7ee26d1d566584eabe10bcdcd23435c87601c | |
| parent | 0994c2713eb17a7568369bbb09ca73d4e4045028 (diff) | |
| download | OneRoll-4a6b19b27866326fa069a422ed2c862ab9e9d4d2.tar.gz OneRoll-4a6b19b27866326fa069a422ed2c862ab9e9d4d2.zip | |
Get full result.
| -rw-r--r-- | cli/main.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/cli/main.cpp b/cli/main.cpp index c40cff6..7cf2b7b 100644 --- a/cli/main.cpp +++ b/cli/main.cpp @@ -232,8 +232,10 @@ int startDiceParsing(QStringList& cmds,QString& treeFile,bool withColor, EXPORTF { parser.start(); QList<ExportedDiceResult> list; + QList<ExportedDiceResult> listFull; bool homogeneous = true; parser.getLastDiceResult(list,homogeneous); + parser.getDiceResultFromAllInstruction(listFull); bool allSameFaceCount, allSameColor; auto array = DisplayToolBox::diceToJson(list,allSameFaceCount,allSameColor); QString resultStr; @@ -313,7 +315,7 @@ int startDiceParsing(QStringList& cmds,QString& treeFile,bool withColor, EXPORTF stringResult.replace(QStringLiteral("$%1").arg(i),(*it)); --i; } - i = strLst.size(); + i = listFull.size(); for(auto it = strLst.rbegin(); it != strLst.rend() ; ++it) { stringResult.replace(QStringLiteral("µ%1").arg(i),(*it)); |