pair_timestamp fix & add url print

test-utf-8
rubin 2 years ago
parent 83667a7e25
commit 171344f818
  1. 16
      TruckHUD.lua

@ -102,7 +102,7 @@ local pickupLoad = {
} }
local newMarkers = {} local newMarkers = {}
local pair_table = {} local pair_table = {}
local pair_timestamp = {} local pair_timestamp = 0
local pair_status = 0 local pair_status = 0
local response_timestamp = 0 local response_timestamp = 0
local transponder_delay = 500 local transponder_delay = 500
@ -1114,13 +1114,15 @@ function doRenderStats()
end end
end end
local afk_wait = (live-pair_afk_stop.player_live > 3 and live-pair_afk_stop.player_live or if pair_timestamp ~= nil then
(pair_timestamp-pair_afk_stop.pair_live > 3 and pair_timestamp-pair_afk_stop.pair_live or 0)) local afk_wait = (live-pair_afk_stop.player_live > 3 and live-pair_afk_stop.player_live or
if afk_wait > 0 then (pair_timestamp-pair_afk_stop.pair_live > 3 and pair_timestamp-pair_afk_stop.pair_live or 0))
pair_afk_stop.auto_stop = os.time() if afk_wait > 0 then
pair_afk_stop.auto_stop = os.time()
end
pair_afk_stop.player_live = live
pair_afk_stop.pair_live = pair_timestamp
end end
pair_afk_stop.player_live = live
pair_afk_stop.pair_live = pair_timestamp
local X, Y, c1, c2 = inifiles.Settings.X1, inifiles.Settings.Y1, inifiles.Render.Color1, inifiles.Render.Color2 local X, Y, c1, c2 = inifiles.Settings.X1, inifiles.Settings.Y1, inifiles.Render.Color1, inifiles.Render.Color2
local down = (renderGetFontDrawHeight(font) / 6) local down = (renderGetFontDrawHeight(font) / 6)

Loading…
Cancel
Save