Merge pull request #2292 from FlightControl-Master/master

Range os.date fix
This commit is contained in:
Thomas 2025-04-23 09:24:02 +02:00 committed by GitHub
commit 68a539923f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -2102,7 +2102,12 @@ function RANGE._OnImpact(weapon, self, playerData, attackHdg, attackAlt, attackV
result.attackHdg = attackHdg result.attackHdg = attackHdg
result.attackVel = attackVel result.attackVel = attackVel
result.attackAlt = attackAlt result.attackAlt = attackAlt
result.date=os and os.date() or "n/a" if os and os.date then
result.date=os.date()
else
self:E(self.lid.."os or os.date() not available")
result.date = "n/a"
end
-- Add to table. -- Add to table.
table.insert( _results, result ) table.insert( _results, result )