Prevent infinite loop for remote sliding players

This commit is contained in:
MysterD 2020-09-03 18:32:07 -07:00
parent 68ad6bc15c
commit 3c48e1df1a
1 changed files with 1 additions and 1 deletions

View File

@ -276,7 +276,7 @@ s32 update_sliding(struct MarioState *m, f32 stopSpeed) {
update_sliding_angle(m, accel, lossFactor);
if (!mario_floor_is_slope(m) && m->forwardVel * m->forwardVel < stopSpeed * stopSpeed) {
if (m->playerIndex == 0 && !mario_floor_is_slope(m) && m->forwardVel * m->forwardVel < stopSpeed * stopSpeed) {
mario_set_forward_vel(m, 0.0f);
stopped = TRUE;
}