/src/network/

ref='#n17'>17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91
-- environment_ers.lua
F.debug = true

F.isempty = function (s)
  return s == nil or s == ''
end

F.print = function (str)
  if F.debug then
    print("PrntMsg: ".. (str or "nil") )
  end
end

S.train_duration = {}
F.train_duration = function(type)
  if not atc_id then return end
  local now = os.date("%H:%M:%S")
  if F.isempty(type) then
    type = "start"
  end
  if not S.train_duration[atc_id] then