small rewrite
Some checks are pending
GenerateBuilds / generate-port-o2r (push) Waiting to run
GenerateBuilds / build-windows (push) Blocked by required conditions
GenerateBuilds / build-macos (push) Blocked by required conditions
GenerateBuilds / build-linux (push) Blocked by required conditions

This commit is contained in:
Sonic Dreamcaster 2025-02-12 19:07:06 -03:00
parent bbdc73c4ec
commit fd8e94fd5a

View File

@ -6447,7 +6447,6 @@ void Map_PathLine_Draw(PathType pathType) {
s32 r; s32 r;
s32 g; s32 g;
s32 b; s32 b;
static f32 prevPosX = 0.0f;
if (pathType == PL_WARP_YLW) { if (pathType == PL_WARP_YLW) {
r = 240; r = 240;
@ -6466,7 +6465,10 @@ void Map_PathLine_Draw(PathType pathType) {
Matrix_Push(&gGfxMatrix); Matrix_Push(&gGfxMatrix);
if (ABS(D_menu_801CEEB0.x) - ABS(prevPosX) > 30) { static f32 prevPosX = 0.0f;
bool shouldSkipInterpolation = ABS(D_menu_801CEEB0.x) - ABS(prevPosX) > 30;
if (shouldSkipInterpolation) {
// @port Skip interpolation // @port Skip interpolation
FrameInterpolation_ShouldInterpolateFrame(false); FrameInterpolation_ShouldInterpolateFrame(false);
} else { } else {
@ -6487,7 +6489,7 @@ void Map_PathLine_Draw(PathType pathType) {
Matrix_Pop(&gGfxMatrix); Matrix_Pop(&gGfxMatrix);
if (ABS(prevPosX) - ABS(D_menu_801CEEB0.x) > 30) { if (shouldSkipInterpolation) {
// @port Skip interpolation // @port Skip interpolation
FrameInterpolation_ShouldInterpolateFrame(true); FrameInterpolation_ShouldInterpolateFrame(true);
} else { } else {