1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-03-29 03:36:40 +00:00

Enable built-in script in the integration tests

This commit is contained in:
elsid 2024-07-31 22:34:27 +02:00
parent 54c76203a7
commit f5b24efdca
No known key found for this signature in database
GPG key ID: 4DE04C198CBA7625
3 changed files with 4 additions and 3 deletions

View file

@ -1 +0,0 @@
# It is an empty file that overrides builtin.omwscripts and disables builtin scripts

View file

@ -220,7 +220,7 @@ testing.registerLocalTest('findNearestNavMeshPosition',
return { return {
engineHandlers = { engineHandlers = {
onUpdate = testing.updateLocal, onFrame = testing.updateLocal,
}, },
eventHandlers = testing.eventHandlers eventHandlers = testing.eventHandlers
} }

View file

@ -181,7 +181,9 @@ end
function M.updateLocal() function M.updateLocal()
if localTestRunner and coroutine.status(localTestRunner) ~= 'dead' then if localTestRunner and coroutine.status(localTestRunner) ~= 'dead' then
coroutine.resume(localTestRunner) if not core.isWorldPaused() then
coroutine.resume(localTestRunner)
end
else else
localTestRunner = nil localTestRunner = nil
end end