mirror of
https://github.com/Michatec/wk_wars2x.git
synced 2026-04-01 08:26:27 +02:00
Update cl_utils.lua
This commit is contained in:
@@ -11,10 +11,6 @@ function UTIL:Round( num, numDecimalPlaces )
|
|||||||
return tonumber( string.format( "%." .. ( numDecimalPlaces or 0 ) .. "f", num ) )
|
return tonumber( string.format( "%." .. ( numDecimalPlaces or 0 ) .. "f", num ) )
|
||||||
end
|
end
|
||||||
|
|
||||||
-- function UTIL:FormatSpeed( speed )
|
|
||||||
-- return string.format( "%03d", speed )
|
|
||||||
-- end
|
|
||||||
|
|
||||||
function UTIL:FormatSpeed( speed )
|
function UTIL:FormatSpeed( speed )
|
||||||
if ( speed < 0 or speed > 999 ) then return "Err" end
|
if ( speed < 0 or speed > 999 ) then return "Err" end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user