aboutsummaryrefslogtreecommitdiff
path: root/server/src/commands.rs
diff options
context:
space:
mode:
authormetamuffin <metamuffin@disroot.org>2025-05-31 22:44:28 +0200
committermetamuffin <metamuffin@disroot.org>2025-05-31 22:44:28 +0200
commitd8ad6551d4db1930df4aace1101ed61fca1e0376 (patch)
treeb263173d02e67c69a1b0c3addde2714bfcfacb07 /server/src/commands.rs
parent689fba90c7a4522729afd40139cc7c23662823e4 (diff)
downloadhurrycurry-d8ad6551d4db1930df4aace1101ed61fca1e0376.tar
hurrycurry-d8ad6551d4db1930df4aace1101ed61fca1e0376.tar.bz2
hurrycurry-d8ad6551d4db1930df4aace1101ed61fca1e0376.tar.zst
offset scoreboard ranks by 1; fix #291
Diffstat (limited to 'server/src/commands.rs')
-rw-r--r--server/src/commands.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/src/commands.rs b/server/src/commands.rs
index b6b00c22..b5645c8c 100644
--- a/server/src/commands.rs
+++ b/server/src/commands.rs
@@ -291,7 +291,7 @@ impl Server {
.map(|(place, entry)| DocumentElement::Text {
s: trm!(
"c.menu.scoreboard.entry",
- s = place.to_string(),
+ s = (place + 1).to_string(),
s = entry.score.points.to_string(),
s = entry.players.clone().join(", ")
),