File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed
Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -789,6 +789,9 @@ void EngineMatch::generateCrossTable(QVariantMap& eMap)
789789 slot[" Game" ] = slotData.m_gameNo ;
790790 slot[" Result" ] = slotData.m_result ;
791791 result[" H2h" ] = result[" H2h" ].toDouble () + slotData.m_result ;
792+ if (slotData.m_winner ) {
793+ obj[" Opponent" ] = engineName;
794+ }
792795 switch (slotData.m_winner ) {
793796 case CrossTableData::WinnerNone:
794797 slot[" Winner" ] = " None" ;
@@ -815,6 +818,9 @@ void EngineMatch::generateCrossTable(QVariantMap& eMap)
815818 if (tsMap.contains (" name" ))
816819 cMap[" Event" ] = tsMap[" name" ].toString ();
817820
821+ if (tsMap.contains (" type" ))
822+ cMap[" Type" ] = tsMap[" type" ].toString ();
823+
818824 JsonSerializer serializer (cMap);
819825 serializer.serialize (out);
820826 output.close ();
You can’t perform that action at this time.
0 commit comments