QTfrontend/pagegamestats.cpp
changeset 6015 daffc14a518a
parent 6009 14f6fc9869f2
child 6042 8b5345758f62
--- a/QTfrontend/pagegamestats.cpp	Sat Sep 24 22:27:20 2011 +0400
+++ b/QTfrontend/pagegamestats.cpp	Sat Sep 24 22:14:10 2011 +0200
@@ -183,12 +183,12 @@
             //AddStatText("<p>local team: " + info + "</p>");
             QStringList infol = info.split(":");
             HWTeam team(infol[0]);
-            if(team.FileExists()) // do some better test to avoid influence from scripted/predefined teams?
+            if(team.fileExists()) // do some better test to avoid influence from scripted/predefined teams?
             {
-                team.LoadFromFile();
-                team.Rounds++;
+                team.loadFromFile();
+                team.incRounds();
                 if(infol[1].toInt() > 0) // might require some better test for winning condition (or changed flag) ... WIP!
-                    team.Wins++; // should draws count as wins?
+                    team.incWins(); // should draws count as wins?
                 //team.SaveToFile(); // don't save yet
             }
             break;