summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/hiscores.cc
diff options
context:
space:
mode:
authorharanp <haranp@c06c8d41-db1a-0410-9941-cceddc491573>2008-09-18 15:23:25 +0000
committerharanp <haranp@c06c8d41-db1a-0410-9941-cceddc491573>2008-09-18 15:23:25 +0000
commitb3834a6fe13b5041291fc0fb62168728788e2d62 (patch)
tree5d19f7845274bc915a365f6d14ad60bbaae45c0b /crawl-ref/source/hiscores.cc
parentee45d583173ec10c5027b164437133a0efda79d4 (diff)
downloadcrawl-ref-b3834a6fe13b5041291fc0fb62168728788e2d62.tar.gz
crawl-ref-b3834a6fe13b5041291fc0fb62168728788e2d62.zip
Fix 2117256: incorrect high score calculation.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6945 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/hiscores.cc')
-rw-r--r--crawl-ref/source/hiscores.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/crawl-ref/source/hiscores.cc b/crawl-ref/source/hiscores.cc
index fce7eeacdf..01babe6070 100644
--- a/crawl-ref/source/hiscores.cc
+++ b/crawl-ref/source/hiscores.cc
@@ -962,7 +962,7 @@ void scorefile_entry::init()
* + 0.1 * Experience above 3,000,000
* + (distinct Runes +2)^2 * 1000, winners with distinct runes >= 3 only
* + value of Inventory, for winners only
- * + (250,000 * distinct Runes) * (25,000/(turns/rune)), for winners only
+ * + (250,000 * d. runes) * (25,000/(turns/d. runes)), for winners only
*
*/
@@ -1022,7 +1022,7 @@ void scorefile_entry::init()
if (calc_item_values) // winners only
{
points += (250000 * num_diff_runes)
- * ( 25000 * num_diff_runes / (1+you.num_turns) );
+ * ((25000.0 * num_diff_runes) / (1+you.num_turns));
}
// Players will have a hard time getting 1/10 of this (see XP cap):