- Fix bug at 'RadioManager.lua'.

- TODO: change function BAirboss:setATC() to fit the usage of RadioManager.RegisterChannel(to request channel, handover the call sign and delete/update/release old channel.)
This commit is contained in:
2024-12-23 23:59:35 +08:00
parent ba3bd8f516
commit 4047499e22
5 changed files with 135 additions and 27 deletions
+22 -1
View File
@@ -1,6 +1,27 @@
Utils = {}
Utils = {
MapMarkIDs = {
[1] = true,
},
}
do
function Utils.getMarkID()
local result = nil
for i,value in ipairs(Utils.MapMarkIDs) do
if value then
result = i
end
end
if result == nil then
result = #Utils.MapMarkIDs + 1
Utils.MapMarkIDs[result] = false
end
return result
end
function Utils.Debug(text,displayTime,clearview)
if not text then text = 'nil or false' end