mirror of
https://github.com/gwenhael-le-moine/ngstar.git
synced 2024-12-25 09:58:09 +01:00
breaking scores again
Signed-off-by: Gwenhael Le Moine <gwenhael.le.moine@gmail.com>
This commit is contained in:
parent
a9b6717314
commit
a9a9b8da60
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue