mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-09-12 22:06:00 -04:00
Merge branch 'ai-exposed-addendum' into 'master'
Idle is optional and could be nil See merge request OpenMW/openmw!4074
This commit is contained in:
commit
d87d4b26f9
@ -22,6 +22,7 @@ local function startPackage(args)
|
||||
local key = "idle"
|
||||
local idle = {}
|
||||
local duration = 0
|
||||
if args.idle then
|
||||
for i = 2, 9 do
|
||||
local val = args.idle[key .. i]
|
||||
if val == nil then
|
||||
@ -34,6 +35,7 @@ local function startPackage(args)
|
||||
idle[i-1] = v
|
||||
end
|
||||
end
|
||||
end
|
||||
if args.duration then
|
||||
duration = args.duration / 3600
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user