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
7433a7144c
commit
8235b51a14
@ -2829,6 +2829,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.
|
||||||
|
|||||||
@ -1741,7 +1741,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