mirror of https://github.com/GTAmodding/re3.git
Fix AI-driver horn SFX length at high FPS
This commit is contained in:
parent
5d19085dfe
commit
9282db1e8f
|
@ -5740,8 +5740,14 @@ CAutomobile::ShowAllComps(void)
|
|||
void
|
||||
CAutomobile::ReduceHornCounter(void)
|
||||
{
|
||||
#ifdef FIX_BUGS
|
||||
// Make horns last longer (only used by AI drivers?)
|
||||
if(m_nCarHornTimer != 0 && CTimer::GetLogicalFramesPassed())
|
||||
m_nCarHornTimer--;
|
||||
#else
|
||||
if(m_nCarHornTimer != 0)
|
||||
m_nCarHornTimer--;
|
||||
#endif
|
||||
}
|
||||
|
||||
void
|
||||
|
|
|
@ -2941,8 +2941,14 @@ CBike::SetupModelNodes(void)
|
|||
void
|
||||
CBike::ReduceHornCounter(void)
|
||||
{
|
||||
if(m_nCarHornTimer != 0)
|
||||
#ifdef FIX_BUGS
|
||||
// Make horns last longer (only used by AI drivers?)
|
||||
if(m_nCarHornTimer != 0 && CTimer::GetLogicalFramesPassed())
|
||||
m_nCarHornTimer--;
|
||||
#else
|
||||
if(m_nCarHornTimer != 0)
|
||||
m_nCarHornTimer--;
|
||||
#endif
|
||||
}
|
||||
|
||||
#ifdef COMPATIBLE_SAVES
|
||||
|
|
Loading…
Reference in New Issue