diff options
author | eray orçunus <erayorcunus@gmail.com> | 2020-07-06 18:26:06 +0200 |
---|---|---|
committer | eray orçunus <erayorcunus@gmail.com> | 2020-07-06 18:26:41 +0200 |
commit | c483a044b587691f70fd7e8cb5348c59a8509d76 (patch) | |
tree | 99d462a04fd5bc92a2461a976f10d89980a81ea6 /src/core/Game.cpp | |
parent | Frontend: Stats, Briefs, gta_vc.set, slider ranges, fixes (diff) | |
download | re3-c483a044b587691f70fd7e8cb5348c59a8509d76.tar re3-c483a044b587691f70fd7e8cb5348c59a8509d76.tar.gz re3-c483a044b587691f70fd7e8cb5348c59a8509d76.tar.bz2 re3-c483a044b587691f70fd7e8cb5348c59a8509d76.tar.lz re3-c483a044b587691f70fd7e8cb5348c59a8509d76.tar.xz re3-c483a044b587691f70fd7e8cb5348c59a8509d76.tar.zst re3-c483a044b587691f70fd7e8cb5348c59a8509d76.zip |
Diffstat (limited to 'src/core/Game.cpp')
-rw-r--r-- | src/core/Game.cpp | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/src/core/Game.cpp b/src/core/Game.cpp index 9d8e4ce7..b21421b1 100644 --- a/src/core/Game.cpp +++ b/src/core/Game.cpp @@ -245,23 +245,20 @@ void CGame::ShutdownRenderWare(void) bool CGame::InitialiseOnceAfterRW(void) { TheText.Load(); - DMAudio.Initialise(); CTimer::Initialise(); CTempColModels::Initialise(); mod_HandlingManager.Initialise(); CSurfaceTable::Initialise("DATA\\SURFACE.DAT"); CPedStats::Initialise(); CTimeCycle::Initialise(); - + DMAudio.Initialise(); if ( DMAudio.GetNum3DProvidersAvailable() == 0 ) - FrontEndMenuManager.m_nPrefsAudio3DProviderIndex = -1; + FrontEndMenuManager.m_nPrefsAudio3DProviderIndex = NO_AUDIO_PROVIDER; - if ( FrontEndMenuManager.m_nPrefsAudio3DProviderIndex == -99 || FrontEndMenuManager.m_nPrefsAudio3DProviderIndex == -2 ) + if ( FrontEndMenuManager.m_nPrefsAudio3DProviderIndex == AUDIO_PROVIDER_NOT_DETERMINED || FrontEndMenuManager.m_nPrefsAudio3DProviderIndex == -2 ) { FrontEndMenuManager.m_PrefsSpeakers = 0; - int8 provider = DMAudio.AutoDetect3DProviders(); - if ( provider != -1 ) - FrontEndMenuManager.m_nPrefsAudio3DProviderIndex = provider; + FrontEndMenuManager.m_nPrefsAudio3DProviderIndex = DMAudio.AutoDetect3DProviders(); } DMAudio.SetCurrent3DProvider(FrontEndMenuManager.m_nPrefsAudio3DProviderIndex); |