Skip to content

Commit bb11504

Browse files
authored
Second attempt at fix for frame-perfect freeze bug
1 parent 55ee1c8 commit bb11504

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Entities/MiniHeart.cs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,6 @@ private IEnumerator SmashRoutine(Player player, Level level) {
6161
yield return null;
6262
Engine.TimeRate = 0.5f;
6363
player.Depth = Depths.FormationSequences;
64-
Depth = Depths.FormationSequences;
6564
for (int i = 0; i < 10; i++) {
6665
Scene.Add(new AbsorbOrb(Position));
6766
}
@@ -78,6 +77,11 @@ private IEnumerator SmashRoutine(Player player, Level level) {
7877
Engine.TimeRate = Calc.Approach(Engine.TimeRate, 0f, Engine.RawDeltaTime * 0.25f);
7978
yield return null;
8079
}
80+
81+
// make sure update order with the player is just right
82+
Depth = 0;
83+
Depth = Depths.FormationSequences;
84+
8185
yield return null;
8286
if (player.Dead) {
8387
yield return 100f;

0 commit comments

Comments
 (0)