aboutsummaryrefslogtreecommitdiff
path: root/client/menu/lobby.gd
diff options
context:
space:
mode:
authormetamuffin <metamuffin@disroot.org>2024-09-20 00:45:42 +0200
committermetamuffin <metamuffin@disroot.org>2024-09-20 00:50:05 +0200
commit3b3c7b900d4eeccb57eb983ce5bc41efa4d5f457 (patch)
tree9608ff402d95ea927fb3b0c9dbddd7a927f9bf87 /client/menu/lobby.gd
parent2b2b1957b80c0743b455e3decba56d0551e69162 (diff)
downloadhurrycurry-3b3c7b900d4eeccb57eb983ce5bc41efa4d5f457.tar
hurrycurry-3b3c7b900d4eeccb57eb983ce5bc41efa4d5f457.tar.bz2
hurrycurry-3b3c7b900d4eeccb57eb983ce5bc41efa4d5f457.tar.zst
replace % operator with String.format()
Diffstat (limited to 'client/menu/lobby.gd')
-rw-r--r--client/menu/lobby.gd2
1 files changed, 1 insertions, 1 deletions
diff --git a/client/menu/lobby.gd b/client/menu/lobby.gd
index 39199d59..0dca6f4c 100644
--- a/client/menu/lobby.gd
+++ b/client/menu/lobby.gd
@@ -105,7 +105,7 @@ func select_map(i: int):
selected_map = i
var map_data: Dictionary = game.maps[i][1]
map_name_label.text = map_data["name"]
- map_player_label.text = tr("c.map.players_recommended") % map_data["players"]
+ map_player_label.text = tr("c.map.players_recommended").format([map_data["players"]])
map_difficulty_label.text = tr("c.map.difficulty.%d" % (map_data["difficulty"] - 1))
selected_map_name = game.maps[i][0]
if not game.menu.covered: