diff --git a/script/function.c b/script/function.c index 0ddf04f..3ad119d 100644 --- a/script/function.c +++ b/script/function.c @@ -951,13 +951,17 @@ unsigned int scoreCalculator(score *score_user, bool win) unsigned int scoreCalculatorCyp(score *score_user, bool win) { - unsigned short int result = 0; //plus grand nombre + unsigned short int result = 10000; //plus grand nombre int time = score_user->after - score_user->before; - result += (score_user->move_box + score_user->move_player) * time; + result -= (score_user->move_box + score_user->move_player) * time; if (!win) { result /= 50; } + if(result <0) + { + result=0; + } return result; }