summaryrefslogtreecommitdiff
path: root/server/score.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'server/score.cpp')
-rw-r--r--server/score.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/server/score.cpp b/server/score.cpp
index b4750c3..7d0dc41 100644
--- a/server/score.cpp
+++ b/server/score.cpp
@@ -16,10 +16,14 @@ int Score::han() {
return yaku + dora;
}
+int Score::fu_rounded() {
+ return roundup(fu, 10);
+}
+
int Score::base_points() {
if(han() < 5) {
// Normal hand.
- return max(roundup(fu, 10) << (2 + han()), 2000);
+ return max(fu_rounded() << (2 + han()), 2000);
} else if(han() <= 5) {
// Mangan.