[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    kdegames/kmines
From:       Marc Mutz <Marc.Mutz () uni-bielefeld ! de>
Date:       2003-08-13 21:06:10
[Download RAW message or body]

CVS commit by mutz: 

When time is the same, favour more clicks over less clicks in the highscore (more \
clicks means autoreveal didn't help so much). Patch Ok'ed by Nicolas


  M +3 -1      highscores.cpp   1.25


--- kdegames/kmines/highscores.cpp  #1.24:1.25
@@ -86,5 +86,7 @@ bool ExtManager::isStrictlyLess(const Sc
 {
     if ( s1.score()==s2.score() )
-        return s1.data("nb_actions").toUInt()>s2.data("nb_actions").toUInt();
+        // when time is same, favour more clicks (it means auto-reveal
+        // didn't help so much):
+        return s1.data("nb_actions").toUInt()<s2.data("nb_actions").toUInt();
     return Manager::isStrictlyLess(s1, s2);
 }


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic