Skip to content

Commit

Permalink
Fix animation issues caused by VUE smoothing in Dark Tide 3 M1 (#294)
Browse files Browse the repository at this point in the history
* vueLogic: when smoothing is enabled, ignore the extra frame at the end of the sequence that is created and used for interpolation. Fixes issues with VUEs that teleport at the end of their last frame (Dark Tide 3 M1)

* formatting
  • Loading branch information
kevinfoley authored Aug 1, 2023
1 parent 3ab87d1 commit 67d59bd
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions TheForceEngine/TFE_DarkForces/vueLogic.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -589,6 +589,11 @@ namespace TFE_DarkForces
for (; local(prevFrame) != frameIndex && local(frame); local(prevFrame)++)
{
local(frame) = (VueFrame*)allocator_getNext(local(vue)->frames);

// We added the interpolated frame to the end of the frame sequence, so we need to make sure we ignore it rather
// than trying to play it as part of the sequence.
if (local(interpolatedFrame) && local(frame) == local(interpolatedFrame)) { local(frame) = nullptr; }

if (smoothVUEs)
{
if (local(frame) && local(current) != local(frame)) {
Expand Down

0 comments on commit 67d59bd

Please sign in to comment.