mirror of
https://github.com/GTAmodding/re3.git
synced 2021-09-07 08:09:38 +00:00
Revert "Fix car fake/cruise top gear SFX at high FPS.", to make merging main miami branch easier. Will-reimplement
This reverts commit 2d3f93e60e
.
This commit is contained in:
parent
0736304795
commit
861da4b367
|
@ -1977,18 +1977,11 @@ PlayCruising:
|
|||
SampleManager.StopChannel(CHANNEL_PLAYER_VEHICLE_ENGINE);
|
||||
if (isMoped || accelerateState >= 150 && wheelsOnGround && brakeState <= 0 && !params.m_pVehicle->bIsHandbrakeOn
|
||||
&& !lostTraction && currentGear >= params.m_pTransmission->nNumberOfGears - 1) {
|
||||
|
||||
#ifdef FIX_BUGS
|
||||
// Stop the fake top ("cruise") gear rising in pitch too quickly at high FPS.
|
||||
if (CTimer::GetLogicalFramesPassed())
|
||||
#endif
|
||||
{
|
||||
if (accelerateState >= 220 && params.m_fVelocityChange + 0.001f >= velocityChangeForAudio) {
|
||||
if (nCruising < 800)
|
||||
++nCruising;
|
||||
} else if (nCruising > 3) {
|
||||
--nCruising;
|
||||
}
|
||||
if (accelerateState >= 220 && params.m_fVelocityChange + 0.001f >= velocityChangeForAudio) {
|
||||
if (nCruising < 800)
|
||||
++nCruising;
|
||||
} else if (nCruising > 3) {
|
||||
--nCruising;
|
||||
}
|
||||
freq = 27 * nCruising + freqModifier + 22050;
|
||||
if (engineSoundType == SFX_BANK_TRUCK)
|
||||
|
|
Loading…
Reference in New Issue
Block a user