Skip to content

Commit

Permalink
Use RawDeltaTime for the asset reload animation
Browse files Browse the repository at this point in the history
  • Loading branch information
horizon-wings committed Sep 26, 2023
1 parent 6fb077f commit 4db0c41
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Celeste.Mod.mm/Mod/Helpers/AssetReloadHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -428,10 +428,10 @@ public override void Update() {
base.Update();

// Update the cogwheel rotation
cogwheelRot += 4 * Engine.DeltaTime;
cogwheelRot += 4 * Engine.RawDeltaTime;

// Update the in-out lerp timer
transitionTimer += Engine.DeltaTime;
transitionTimer += Engine.RawDeltaTime;
if (transitionTimer > (outTransition ? TimeOut : TimeIn))
transitionTimer = (outTransition ? TimeOut : TimeIn);

Expand Down

0 comments on commit 4db0c41

Please sign in to comment.