- 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:
+22
-1
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user