Веб-сайт самохостера Lotigara

summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKae <80987908+Novaenia@users.noreply.github.com>2023-11-24 20:44:43 +1100
committerKae <80987908+Novaenia@users.noreply.github.com>2023-11-24 20:44:43 +1100
commit1db9091f503cd6f2348cef2e25fc34102687832c (patch)
treebf1f27b59296ddf6012d95d847712db4e0f7795d
parent9bef78a737ca96ef61ca5504f61e73f8ffb013f3 (diff)
non-zero default for script.updateDt for cases when it's called outside update()
-rw-r--r--source/game/scripting/StarLuaComponents.hpp1
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));
}