diff -r a0d6404a80a2 -r f0cb47f0bfaf QTfrontend/ui/page/pagegamestats.cpp
--- a/QTfrontend/ui/page/pagegamestats.cpp Tue Sep 04 14:20:15 2018 +0200
+++ b/QTfrontend/ui/page/pagegamestats.cpp Tue Sep 04 15:03:35 2018 +0200
@@ -152,6 +152,7 @@
labelGameRank->setText("");
labelGameWin->setText("");
playerPosition = 0;
+ scriptPlayerPosition = 0;
lastColor = 0;
}
@@ -326,7 +327,13 @@
if (lastColor == c) playerPosition--;
lastColor = c;
- switch (playerPosition)
+ unsigned int realPlayerPosition;
+ if(scriptPlayerPosition == 0)
+ realPlayerPosition = playerPosition;
+ else
+ realPlayerPosition = scriptPlayerPosition;
+
+ switch (realPlayerPosition)
{
case 1:
image = "";
@@ -353,9 +360,10 @@
kindOfPoints = QString("");
}
- message = QString("