mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2025-08-15 10:47:21 +00:00
Bug fixing
This commit is contained in:
parent
5e8fe97752
commit
db5797bb4e
@ -2831,6 +2831,7 @@ function RANGE:_CheckInZone(_unitName)
|
|||||||
local accur=0
|
local accur=0
|
||||||
if shots>0 then
|
if shots>0 then
|
||||||
accur=_result.hits/shots*100
|
accur=_result.hits/shots*100
|
||||||
|
if accur > 100 then accur = 100 end
|
||||||
end
|
end
|
||||||
|
|
||||||
-- Message text.
|
-- Message text.
|
||||||
|
|||||||
@ -1698,7 +1698,7 @@ function UTILS.GenerateLaserCodes()
|
|||||||
while _code < 1777 and _count < 30 do
|
while _code < 1777 and _count < 30 do
|
||||||
while true do
|
while true do
|
||||||
_code = _code + 1
|
_code = _code + 1
|
||||||
if not self:_ContainsDigit(_code, 8)
|
if not ContainsDigit(_code, 8)
|
||||||
and not ContainsDigit(_code, 9)
|
and not ContainsDigit(_code, 9)
|
||||||
and not ContainsDigit(_code, 0) then
|
and not ContainsDigit(_code, 0) then
|
||||||
table.insert(jtacGeneratedLaserCodes, _code)
|
table.insert(jtacGeneratedLaserCodes, _code)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user