Accept original canonical angle at first Bubble replay step

This commit is contained in:
UnixNight committed 2026-11-05 09:52:02 -05:00
1 parent 0e2f426d42
commit acd1b287cf
2 files changed
+10 -1

No files matched your search

@@ -97,3 +97,10 @@ orders. Control loss still runs the body, but a supported root need not move;
its regression checks the physics count/support/ownership instead of inventing its regression checks the physics count/support/ownership instead of inventing
an airborne displacement. Grappler completion/other callbacks are not inferred an airborne displacement. Grappler completion/other callbacks are not inferred
from these tests. from these tests.
The eight-stage Bubble GPU replay exposed the first-step boundary too: a negative
subdegree facing increment can publish canonical360, whose signed remainder is0.
The immediate throttle assertion admits that source result; the sustained managed
case still requires negative lean. Both headless and native1920×1080 SDL Bubble
replays pass all eight phases with zero validation errors. This correction changes
only the smoke predicate, not movement or gadget behavior.
+3 -1
View File
@@ -106,7 +106,9 @@ public sealed class BubbleSmoke
if (count == 1) checks[1] = effect.Active && !effect.Expanding && effect.Visible if (count == 1) checks[1] = effect.Active && !effect.Expanding && effect.Visible
&& effect.Width == 240 && effect.Height >= 210 && effect.Height <= 270; && effect.Width == 240 && effect.Height >= 210 && effect.Height <= 270;
if (count == 2) checks[2] = player.GadgetMode == 0 && player.MovementMode == 2 if (count == 2) checks[2] = player.GadgetMode == 0 && player.MovementMode == 2
&& player.Speed > 0 && player.TurnRate > 0 && MathF.IEEERemainder(player.Pitch,360) < 0 && !player.Shooting; //The first subdegree negative AddEuler can normalize to360;
//sustained negative lean is covered by the managed integration test.
&& player.Speed > 0 && player.TurnRate > 0 && MathF.IEEERemainder(player.Pitch,360) <= 0 && !player.Shooting;
if (count == 3) checks[3] = player.BubbleBounces > bouncesBeforeHeld if (count == 3) checks[3] = player.BubbleBounces > bouncesBeforeHeld
&& MathF.Abs(player.Velocity.Y - 900) < .001f && boingSounds > soundsBeforeHeld; && MathF.Abs(player.Velocity.Y - 900) < .001f && boingSounds > soundsBeforeHeld;
if (count == 4) checks[4] = player.GadgetMode == 0 && effect.Active && !player.Shooting; if (count == 4) checks[4] = player.GadgetMode == 0 && effect.Active && !player.Shooting;