File tree Expand file tree Collapse file tree 6 files changed +0
-24
lines changed
GeneralsMD/Code/GameEngine Expand file tree Collapse file tree 6 files changed +0
-24
lines changed Original file line number Diff line number Diff line change @@ -362,11 +362,6 @@ class GlobalData : public SubsystemInterface
362362
363363 Real m_keyboardScrollFactor; // /< Factor applied to game scrolling speed via keyboard scrolling
364364 Real m_keyboardDefaultScrollFactor; // /< Factor applied to game scrolling speed via keyboard scrolling
365-
366- Real m_musicVolumeFactor; // /< Factor applied to loudness of music volume
367- Real m_SFXVolumeFactor; // /< Factor applied to loudness of SFX volume
368- Real m_voiceVolumeFactor; // /< Factor applied to loudness of voice volume
369- Bool m_3DSoundPref; // /< Whether user wants to use 3DSound or not
370365
371366 Bool m_animateWindows; // /< Should we animate window transitions?
372367
Original file line number Diff line number Diff line change @@ -977,10 +977,6 @@ GlobalData::GlobalData()
977977 m_afterIntro = FALSE ;
978978 m_allowExitOutOfMovies = FALSE ;
979979 m_loadScreenRender = FALSE ;
980- m_musicVolumeFactor = 0 .5f ;
981- m_SFXVolumeFactor = 0 .5f ;
982- m_voiceVolumeFactor = 0 .5f ;
983- m_3DSoundPref = false ;
984980
985981 m_keyboardDefaultScrollFactor = m_keyboardScrollFactor = 0 .5f ;
986982 m_scrollAmountCutoff = 10 .0f ;
Original file line number Diff line number Diff line change @@ -1144,7 +1144,6 @@ static void saveOptions( void )
11441144 val = GadgetSliderGetPosition (sliderMusicVolume);
11451145 if (val != -1 )
11461146 {
1147- TheWritableGlobalData->m_musicVolumeFactor = val;
11481147 AsciiString prefString;
11491148 prefString.format (" %d" , val);
11501149 (*pref)[" MusicVolume" ] = prefString;
@@ -1178,7 +1177,6 @@ static void saveOptions( void )
11781177 TheAudio->setVolume ( sound3DVolume, (AudioAffect) (AudioAffect_Sound3D | AudioAffect_SystemSetting) );
11791178
11801179 // Save the settings in the options.ini.
1181- TheWritableGlobalData->m_SFXVolumeFactor = val;
11821180 AsciiString prefString;
11831181 prefString.format (" %d" , REAL_TO_INT ( sound2DVolume * 100 .0f ) );
11841182 (*pref)[" SFXVolume" ] = prefString;
@@ -1191,7 +1189,6 @@ static void saveOptions( void )
11911189 val = GadgetSliderGetPosition (sliderVoiceVolume);
11921190 if (val != -1 )
11931191 {
1194- TheWritableGlobalData->m_voiceVolumeFactor = val;
11951192 AsciiString prefString;
11961193 prefString.format (" %d" , val);
11971194 (*pref)[" VoiceVolume" ] = prefString;
Original file line number Diff line number Diff line change @@ -370,11 +370,6 @@ class GlobalData : public SubsystemInterface
370370
371371 Real m_keyboardScrollFactor; // /< Factor applied to game scrolling speed via keyboard scrolling
372372 Real m_keyboardDefaultScrollFactor; // /< Factor applied to game scrolling speed via keyboard scrolling
373-
374- Real m_musicVolumeFactor; // /< Factor applied to loudness of music volume
375- Real m_SFXVolumeFactor; // /< Factor applied to loudness of SFX volume
376- Real m_voiceVolumeFactor; // /< Factor applied to loudness of voice volume
377- Bool m_3DSoundPref; // /< Whether user wants to use 3DSound or not
378373
379374 Bool m_animateWindows; // /< Should we animate window transitions?
380375
Original file line number Diff line number Diff line change @@ -986,10 +986,6 @@ GlobalData::GlobalData()
986986 m_afterIntro = FALSE ;
987987 m_allowExitOutOfMovies = FALSE ;
988988 m_loadScreenRender = FALSE ;
989- m_musicVolumeFactor = 0 .5f ;
990- m_SFXVolumeFactor = 0 .5f ;
991- m_voiceVolumeFactor = 0 .5f ;
992- m_3DSoundPref = false ;
993989
994990 m_keyboardDefaultScrollFactor = m_keyboardScrollFactor = 0 .5f ;
995991 m_scrollAmountCutoff = 10 .0f ;
Original file line number Diff line number Diff line change @@ -1204,7 +1204,6 @@ static void saveOptions( void )
12041204 val = GadgetSliderGetPosition (sliderMusicVolume);
12051205 if (val != -1 )
12061206 {
1207- TheWritableGlobalData->m_musicVolumeFactor = val;
12081207 AsciiString prefString;
12091208 prefString.format (" %d" , val);
12101209 (*pref)[" MusicVolume" ] = prefString;
@@ -1238,7 +1237,6 @@ static void saveOptions( void )
12381237 TheAudio->setVolume ( sound3DVolume, (AudioAffect) (AudioAffect_Sound3D | AudioAffect_SystemSetting) );
12391238
12401239 // Save the settings in the options.ini.
1241- TheWritableGlobalData->m_SFXVolumeFactor = val;
12421240 AsciiString prefString;
12431241 prefString.format (" %d" , REAL_TO_INT ( sound2DVolume * 100 .0f ) );
12441242 (*pref)[" SFXVolume" ] = prefString;
@@ -1251,7 +1249,6 @@ static void saveOptions( void )
12511249 val = GadgetSliderGetPosition (sliderVoiceVolume);
12521250 if (val != -1 )
12531251 {
1254- TheWritableGlobalData->m_voiceVolumeFactor = val;
12551252 AsciiString prefString;
12561253 prefString.format (" %d" , val);
12571254 (*pref)[" VoiceVolume" ] = prefString;
You can’t perform that action at this time.
0 commit comments