mirror of
https://git.rip/DMCA_FUCKER/re3.git
synced 2024-12-23 12:20:00 +00:00
fixed some bike bugs
This commit is contained in:
parent
9d62bed9f3
commit
0f020127f3
|
@ -478,7 +478,7 @@ CBike::ProcessControl(void)
|
||||||
|
|
||||||
if(m_vecMoveSpeedAvg.MagnitudeSqr() <= sq(moveSpeedLimit*CTimer::GetTimeStep()) &&
|
if(m_vecMoveSpeedAvg.MagnitudeSqr() <= sq(moveSpeedLimit*CTimer::GetTimeStep()) &&
|
||||||
m_vecTurnSpeedAvg.MagnitudeSqr() <= sq(turnSpeedLimit*CTimer::GetTimeStep()) &&
|
m_vecTurnSpeedAvg.MagnitudeSqr() <= sq(turnSpeedLimit*CTimer::GetTimeStep()) &&
|
||||||
m_fDistanceTravelled < distanceLimit &&
|
m_fDistanceTravelled < distanceLimit ||
|
||||||
makeStatic){
|
makeStatic){
|
||||||
m_nStaticFrames++;
|
m_nStaticFrames++;
|
||||||
|
|
||||||
|
@ -1146,7 +1146,12 @@ CBike::ProcessControl(void)
|
||||||
float suspChange = m_aSuspensionSpringRatioPrev[i] - m_aSuspensionSpringRatio[i];
|
float suspChange = m_aSuspensionSpringRatioPrev[i] - m_aSuspensionSpringRatio[i];
|
||||||
if(suspChange > 0.3f && (i == BIKESUSP_F1 || i == BIKESUSP_R1) && speedsq > 0.04f){
|
if(suspChange > 0.3f && (i == BIKESUSP_F1 || i == BIKESUSP_R1) && speedsq > 0.04f){
|
||||||
if(GetStatus() == STATUS_PLAYER || GetStatus() == STATUS_PHYSICS){
|
if(GetStatus() == STATUS_PLAYER || GetStatus() == STATUS_PHYSICS){
|
||||||
|
#ifdef FIX_BUGS
|
||||||
|
// only two wheels but 4 suspensions
|
||||||
|
if(m_wheelStatus[i/2] == WHEEL_STATUS_BURST)
|
||||||
|
#else
|
||||||
if(m_wheelStatus[i] == WHEEL_STATUS_BURST)
|
if(m_wheelStatus[i] == WHEEL_STATUS_BURST)
|
||||||
|
#endif
|
||||||
DMAudio.PlayOneShot(m_audioEntityId, SOUND_CAR_JUMP_2, suspChange);
|
DMAudio.PlayOneShot(m_audioEntityId, SOUND_CAR_JUMP_2, suspChange);
|
||||||
else
|
else
|
||||||
DMAudio.PlayOneShot(m_audioEntityId, SOUND_CAR_JUMP, suspChange);
|
DMAudio.PlayOneShot(m_audioEntityId, SOUND_CAR_JUMP, suspChange);
|
||||||
|
|
Loading…
Reference in a new issue