QTfrontend/pagegamestats.cpp
changeset 6015 daffc14a518a
parent 6009 14f6fc9869f2
child 6042 8b5345758f62
equal deleted inserted replaced
6014:b432c4b9cc9b 6015:daffc14a518a
   181         }
   181         }
   182         case 'T': { // local team stats
   182         case 'T': { // local team stats
   183             //AddStatText("<p>local team: " + info + "</p>");
   183             //AddStatText("<p>local team: " + info + "</p>");
   184             QStringList infol = info.split(":");
   184             QStringList infol = info.split(":");
   185             HWTeam team(infol[0]);
   185             HWTeam team(infol[0]);
   186             if(team.FileExists()) // do some better test to avoid influence from scripted/predefined teams?
   186             if(team.fileExists()) // do some better test to avoid influence from scripted/predefined teams?
   187             {
   187             {
   188                 team.LoadFromFile();
   188                 team.loadFromFile();
   189                 team.Rounds++;
   189                 team.incRounds();
   190                 if(infol[1].toInt() > 0) // might require some better test for winning condition (or changed flag) ... WIP!
   190                 if(infol[1].toInt() > 0) // might require some better test for winning condition (or changed flag) ... WIP!
   191                     team.Wins++; // should draws count as wins?
   191                     team.incWins(); // should draws count as wins?
   192                 //team.SaveToFile(); // don't save yet
   192                 //team.SaveToFile(); // don't save yet
   193             }
   193             }
   194             break;
   194             break;
   195             }
   195             }
   196 
   196