Skip to content

Commit 94a7f53

Browse files
committed
Fixed issue with 1-frame glows that was caused by some changes to draw and update order that, while being semantically correct, caused issues with mods.
1 parent 9849229 commit 94a7f53

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
2424

2525
- Fixed a missing Lua write binding for `AEJetpack`'s `JetTimeLeft` property.
2626

27+
- Fixed an issue where glows wouldn't render if the EffectStopTime was lower than the simulation deltatime.
28+
2729
</details>
2830

2931
## [Release v6.1.0] - 2024/02/15

Source/Entities/MovableObject.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -346,7 +346,10 @@ int MovableObject::ReadProperty(const std::string_view& propName, Reader& reader
346346
MatchProperty("InheritEffectRotAngle", { reader >> m_InheritEffectRotAngle; });
347347
MatchProperty("RandomizeEffectRotAngle", { reader >> m_RandomizeEffectRotAngle; });
348348
MatchProperty("RandomizeEffectRotAngleEveryFrame", { reader >> m_RandomizeEffectRotAngleEveryFrame; });
349-
MatchProperty("EffectStopTime", { reader >> m_EffectStopTime; });
349+
MatchProperty("EffectStopTime", {
350+
reader >> m_EffectStopTime;
351+
m_EffectStopTime = std::max(m_EffectStopTime, static_cast<int>(g_TimerMan.GetDeltaTimeMS()) + 1);
352+
});
350353
MatchProperty("EffectStartStrength", {
351354
float strength;
352355
reader >> strength;

0 commit comments

Comments
 (0)