Use the real formula for normal mode, and our own for courses.
This commit is contained in:
@@ -207,12 +207,17 @@ static int GetScore(int p, int Z, int S, int n)
|
|||||||
* changes the scoring rules slightly.
|
* changes the scoring rules slightly.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#if 0
|
#if 1
|
||||||
/* This is the actual method described below. */
|
if ( GAMESTATE->IsCourseMode() )
|
||||||
return p * (Z / S) * n;
|
{
|
||||||
#elif 1
|
/* This doesn't round down Z/S, but will work for courses. */
|
||||||
/* This doesn't round down Z/S. */
|
|
||||||
return int(int64_t(p) * n * Z / S);
|
return int(int64_t(p) * n * Z / S);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
/* This is the actual method described in the comment block above. */
|
||||||
|
return p * (Z / S) * n;
|
||||||
|
}
|
||||||
#else
|
#else
|
||||||
/* This also doesn't round down Z/S. Use this if you don't have 64-bit ints. */
|
/* This also doesn't round down Z/S. Use this if you don't have 64-bit ints. */
|
||||||
return int(p * n * (float(Z) / S));
|
return int(p * n * (float(Z) / S));
|
||||||
|
|||||||
Reference in New Issue
Block a user