Bug fixing

This commit is contained in:
Applevangelist 2021-09-02 18:48:40 +02:00
parent 5e8fe97752
commit db5797bb4e
2 changed files with 2 additions and 1 deletions

View File

@ -2831,6 +2831,7 @@ function RANGE:_CheckInZone(_unitName)
local accur=0
if shots>0 then
accur=_result.hits/shots*100
if accur > 100 then accur = 100 end
end
-- Message text.

View File

@ -1698,7 +1698,7 @@ function UTILS.GenerateLaserCodes()
while _code < 1777 and _count < 30 do
while true do
_code = _code + 1
if not self:_ContainsDigit(_code, 8)
if not ContainsDigit(_code, 8)
and not ContainsDigit(_code, 9)
and not ContainsDigit(_code, 0) then
table.insert(jtacGeneratedLaserCodes, _code)