breaking scores again

Signed-off-by: Gwenhael Le Moine <gwenhael.le.moine@gmail.com>
This commit is contained in:
Gwenhael Le Moine 2012-04-10 16:11:31 +02:00
parent a9b6717314
commit a9a9b8da60

View file

@ -104,7 +104,7 @@ namespace ngstar2{
void Scores::set( int level, int nbMoves, int nbSeconds )
{
// int score = abs( nbMoves - nbSeconds );
double score = nbMoves * 100 + nbSeconds;
int score = nbMoves * nbSeconds;
if ( ( score <= (this->scores)[ level - 1 ] ) ||
( (this->scores)[ level - 1 ] == -1) ) {
(this->scores)[ level - 1 ] = (int) score;