diff options
author | Kae <80987908+Novaenia@users.noreply.github.com> | 2023-11-24 20:44:43 +1100 |
---|---|---|
committer | Kae <80987908+Novaenia@users.noreply.github.com> | 2023-11-24 20:44:43 +1100 |
commit | 1db9091f503cd6f2348cef2e25fc34102687832c (patch) | |
tree | bf1f27b59296ddf6012d95d847712db4e0f7795d | |
parent | 9bef78a737ca96ef61ca5504f61e73f8ffb013f3 (diff) |
non-zero default for script.updateDt for cases when it's called outside update()
-rw-r--r-- | source/game/scripting/StarLuaComponents.hpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source/game/scripting/StarLuaComponents.hpp b/source/game/scripting/StarLuaComponents.hpp index a3d199c..e739912 100644 --- a/source/game/scripting/StarLuaComponents.hpp +++ b/source/game/scripting/StarLuaComponents.hpp @@ -252,6 +252,7 @@ LuaUpdatableComponent<Base>::LuaUpdatableComponent() { setUpdateDelta(d); }); + m_lastDt = GlobalTimestep * GlobalTimescale; Base::addCallbacks("script", move(scriptCallbacks)); } |