mirror of
https://repo.or.cz/minetest_orienteering.git
synced 2024-08-20 04:34:07 +02:00
Remove one digit of speed display
This commit is contained in:
parent
0516c20549
commit
1547a32804
2
init.lua
2
init.lua
@ -275,7 +275,7 @@ function update_hud_displays(player)
|
||||
|
||||
local speed = vector.length(player:get_player_velocity())
|
||||
if speedometer or quadcorder then
|
||||
str_speed = string.format(S("Speed: %.2f %s"), speed, orienteering.settings.speed_unit)
|
||||
str_speed = string.format(S("Speed: %.1f %s"), speed, orienteering.settings.speed_unit)
|
||||
else
|
||||
str_speed = ""
|
||||
end
|
||||
|
@ -19,7 +19,7 @@ a.m. = AM
|
||||
Time: %i:%02i %s = Uhrzeit: %i:%02i %s
|
||||
Time: %02i:%02i = Uhrzeit: %02i:%02i
|
||||
|
||||
Speed: %.2f %s = Tempo: %.2f %s
|
||||
Speed: %.1f %s = Tempo: %.1f %s
|
||||
|
||||
m = m
|
||||
m/s = m/s
|
||||
|
@ -35,5 +35,5 @@ m
|
||||
# meters per second
|
||||
m/s
|
||||
|
||||
# %.2f will be replaced by number, %s will be replaced by speed unit
|
||||
Speed: %.2f %s
|
||||
# %.1f will be replaced by number, %s will be replaced by speed unit
|
||||
Speed: %.1f %s
|
||||
|
Loading…
Reference in New Issue
Block a user