This commit is contained in:
2025-01-08 15:17:09 +01:00

View File

@@ -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;
}