- fix my nasty bug in InitSkidding

This commit is contained in:
Ilya Shurumov 2020-04-27 13:12:59 +06:00
parent b60bf33226
commit 0fdd119bcf
2 changed files with 3 additions and 4 deletions

View File

@ -839,12 +839,10 @@ LAB_0004e0dc:
InitDopplerSFX();
InitSkidding();
AddTunnels(GameLevel);
first_offence = '\x01';
first_offence = 1;
InitializeMissionSound();
}
// decompiled code
// original method signature:
// unsigned short /*$ra*/ GetEngineRevs(struct _CAR_DATA *cp /*$t2*/)

View File

@ -2359,7 +2359,8 @@ void InitSkidding(void)
player[i].wheelnoise.chan = -1;
player[i].skidding.sound = -1;
player[i].skidding.chan = -1;
} while (i-- >= 0);
i--;
} while (i >= 0);
}