[Kde-games-devel] Help about a new game

Albert Astals Cid aacid at kde.org
Thu May 14 19:57:08 CEST 2009


A Dijous, 14 de maig de 2009, Vincent va escriure:
> Hello,
>
> I have an issue with the sorting of the high-scores. The score is
> well-sorted but for a same score, the time is not sorted correctly. I
> read the api documentation and some source codes but I don't know how
> to change that.
>
> This is the code which manage the high-scores :
>
> KScoreDialog::FieldInfo scoreInfo;
>
> scoreInfo[KScoreDialog::Name] = name ;
> scoreInfo[KScoreDialog::Score].setNum( itemNumber );
> scoreInfo[KScoreDialog::Time] = time ;
>
> if ( m_kScoreDialog->addScore( scoreInfo, KScoreDialog::LessIsMore ) )
> 	m_kScoreDialog->exec();

You mean you get

Name Time Score
A     4    6
B     6    5
C     3    5

instead of 

Name Time Score
A     4    6
C     3    5
B     6    5

?

Albert


>
>
> Regards,
>
> Vincent
> _______________________________________________
> kde-games-devel mailing list
> kde-games-devel at kde.org
> https://mail.kde.org/mailman/listinfo/kde-games-devel




More information about the kde-games-devel mailing list