Prevent infinite loop for remote sliding players
This commit is contained in:
parent
68ad6bc15c
commit
3c48e1df1a
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue