mirror of
https://github.com/GTAmodding/re3.git
synced 2025-10-12 20:20:34 +00:00
Fix redone + add hud fix
This commit is contained in:
parent
cacec36dd1
commit
f741101e44
6 changed files with 34 additions and 31 deletions
|
@ -41,11 +41,6 @@ cAudioManager::cAudioManager()
|
|||
m_bFifthFrameFlag = FALSE;
|
||||
m_bTimerJustReset = FALSE;
|
||||
m_nTimer = 0;
|
||||
|
||||
#ifdef FIX_BUGS
|
||||
m_LogicalFrameCounter = 0;
|
||||
m_bLogicalFrameUpdate = FALSE;
|
||||
#endif
|
||||
}
|
||||
|
||||
cAudioManager::~cAudioManager()
|
||||
|
@ -105,12 +100,6 @@ cAudioManager::Terminate()
|
|||
void
|
||||
cAudioManager::Service()
|
||||
{
|
||||
#ifdef FIX_BUGS
|
||||
m_bLogicalFrameUpdate = m_LogicalFrameCounter != CTimer::GetLogicalFrameCounter();
|
||||
if(m_bLogicalFrameUpdate)
|
||||
m_LogicalFrameCounter = CTimer::GetLogicalFrameCounter();
|
||||
#endif
|
||||
|
||||
GenerateIntegerRandomNumberTable();
|
||||
if (m_bTimerJustReset) {
|
||||
ResetAudioLogicTimers(m_nTimer);
|
||||
|
@ -435,7 +424,7 @@ void
|
|||
cAudioManager::ServiceSoundEffects()
|
||||
{
|
||||
#ifdef FIX_BUGS
|
||||
if(m_bLogicalFrameUpdate)
|
||||
if(CTimer::GetLogicalFramesPassed() != 0)
|
||||
#endif
|
||||
m_bFifthFrameFlag = (m_FrameCounter++ % 5) == 0;
|
||||
if (m_nUserPause && !m_nPreviousUserPause) {
|
||||
|
@ -741,7 +730,7 @@ cAudioManager::AddReleasingSounds()
|
|||
sample.m_nVolume -= sample.m_nVolumeChange;
|
||||
}
|
||||
#ifdef FIX_BUGS
|
||||
if(m_bLogicalFrameUpdate)
|
||||
if(CTimer::GetLogicalFramesPassed() != 0)
|
||||
#endif
|
||||
--sample.m_nReleasingVolumeDivider;
|
||||
if (m_bFifthFrameFlag) {
|
||||
|
|
|
@ -223,10 +223,6 @@ public:
|
|||
uint8 m_nUserPause;
|
||||
uint8 m_nPreviousUserPause;
|
||||
uint32 m_FrameCounter;
|
||||
#ifdef FIX_BUGS
|
||||
uint32 m_LogicalFrameCounter;
|
||||
bool8 m_bLogicalFrameUpdate;
|
||||
#endif
|
||||
|
||||
cAudioManager();
|
||||
~cAudioManager();
|
||||
|
|
|
@ -195,7 +195,11 @@ cMusicManager::DisplayRadioStationName()
|
|||
cDisplay = 60;
|
||||
} else {
|
||||
if(cDisplay == 0) return;
|
||||
#ifdef FIX_BUGS
|
||||
cDisplay -= CTimer::GetLogicalFramesPassed();
|
||||
#else
|
||||
cDisplay--;
|
||||
#endif
|
||||
}
|
||||
|
||||
CFont::SetJustifyOff();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue