From 1db9091f503cd6f2348cef2e25fc34102687832c Mon Sep 17 00:00:00 2001 From: Kae <80987908+Novaenia@users.noreply.github.com> Date: Fri, 24 Nov 2023 20:44:43 +1100 Subject: non-zero default for script.updateDt for cases when it's called outside update() --- source/game/scripting/StarLuaComponents.hpp | 1 + 1 file changed, 1 insertion(+) (limited to 'source/game/scripting/StarLuaComponents.hpp') 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::LuaUpdatableComponent() { setUpdateDelta(d); }); + m_lastDt = GlobalTimestep * GlobalTimescale; Base::addCallbacks("script", move(scriptCallbacks)); } -- cgit v1.2.3