From 7a45c6543e46e5f4b7d55f35924efd3d0a546aec Mon Sep 17 00:00:00 2001 From: SilentSpike Date: Mon, 20 Jul 2015 23:02:24 +0100 Subject: [PATCH] Truncate speed values to 2 DP --- addons/spectator/functions/fnc_handleToolbar.sqf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/spectator/functions/fnc_handleToolbar.sqf b/addons/spectator/functions/fnc_handleToolbar.sqf index a65f4df088..cab499a100 100644 --- a/addons/spectator/functions/fnc_handleToolbar.sqf +++ b/addons/spectator/functions/fnc_handleToolbar.sqf @@ -36,7 +36,7 @@ if (GVAR(camMode) == 0) then { _depth = format ["%1 m", floor(getPosASL GVAR(camera) select 2)]; _fov = format ["%1x", floor(GVAR(camZoom) * 100) * 0.01]; _name = localize "STR_VOICE_MASK_NONE"; - _speed = format ["%1 m/s", GVAR(camSpeed)]; + _speed = format ["%1 m/s", floor(GVAR(camSpeed) * 100) * 0.01]; } else { _depth = format ["%1 m", floor(getPosASL GVAR(camUnit) select 2)]; _fov = WFSideText (group GVAR(camUnit));