equal
deleted
inserted
replaced
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 |