mirror of
https://github.com/coop-deluxe/sm64coopdx.git
synced 2024-11-25 05:25:14 +00:00
Prevent infinite loop for remote sliding players
This commit is contained in:
parent
68ad6bc15c
commit
3c48e1df1a
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue