Skip to content

Commit 07b50db

Browse files
Merge branch '96flashbacks:main' into main
2 parents 2fef34c + 3769dc9 commit 07b50db

1 file changed

Lines changed: 10 additions & 1 deletion

File tree

src/game/mario_actions_moving.c

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -346,8 +346,17 @@ s32 apply_slope_decel(struct MarioState *m, f32 decelCoef) {
346346
s32 stopped = FALSE;
347347

348348
switch (mario_get_floor_class(m)) {
349+
case SURFACE_CLASS_VERY_SLIPPERY:
350+
decel = decelCoef * 0.2f;
351+
break;
352+
case SURFACE_CLASS_SLIPPERY:
353+
decel = decelCoef * 0.5f;
354+
break;
349355
default:
350-
decel = decelCoef * 0.85f;
356+
decel = decelCoef * 1.0f;
357+
break;
358+
case SURFACE_CLASS_NOT_SLIPPERY:
359+
decel = decelCoef * 2.0f;
351360
break;
352361
}
353362

0 commit comments

Comments
 (0)