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
362
362
363
363
Real m_keyboardScrollFactor; // /< Factor applied to game scrolling speed via keyboard scrolling
364
364
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
370
365
371
366
Bool m_animateWindows; // /< Should we animate window transitions?
372
367
Original file line number Diff line number Diff line change @@ -977,10 +977,6 @@ GlobalData::GlobalData()
977
977
m_afterIntro = FALSE ;
978
978
m_allowExitOutOfMovies = FALSE ;
979
979
m_loadScreenRender = FALSE ;
980
- m_musicVolumeFactor = 0 .5f ;
981
- m_SFXVolumeFactor = 0 .5f ;
982
- m_voiceVolumeFactor = 0 .5f ;
983
- m_3DSoundPref = false ;
984
980
985
981
m_keyboardDefaultScrollFactor = m_keyboardScrollFactor = 0 .5f ;
986
982
m_scrollAmountCutoff = 10 .0f ;
Original file line number Diff line number Diff line change @@ -1144,7 +1144,6 @@ static void saveOptions( void )
1144
1144
val = GadgetSliderGetPosition (sliderMusicVolume);
1145
1145
if (val != -1 )
1146
1146
{
1147
- TheWritableGlobalData->m_musicVolumeFactor = val;
1148
1147
AsciiString prefString;
1149
1148
prefString.format (" %d" , val);
1150
1149
(*pref)[" MusicVolume" ] = prefString;
@@ -1178,7 +1177,6 @@ static void saveOptions( void )
1178
1177
TheAudio->setVolume ( sound3DVolume, (AudioAffect) (AudioAffect_Sound3D | AudioAffect_SystemSetting) );
1179
1178
1180
1179
// Save the settings in the options.ini.
1181
- TheWritableGlobalData->m_SFXVolumeFactor = val;
1182
1180
AsciiString prefString;
1183
1181
prefString.format (" %d" , REAL_TO_INT ( sound2DVolume * 100 .0f ) );
1184
1182
(*pref)[" SFXVolume" ] = prefString;
@@ -1191,7 +1189,6 @@ static void saveOptions( void )
1191
1189
val = GadgetSliderGetPosition (sliderVoiceVolume);
1192
1190
if (val != -1 )
1193
1191
{
1194
- TheWritableGlobalData->m_voiceVolumeFactor = val;
1195
1192
AsciiString prefString;
1196
1193
prefString.format (" %d" , val);
1197
1194
(*pref)[" VoiceVolume" ] = prefString;
Original file line number Diff line number Diff line change @@ -370,11 +370,6 @@ class GlobalData : public SubsystemInterface
370
370
371
371
Real m_keyboardScrollFactor; // /< Factor applied to game scrolling speed via keyboard scrolling
372
372
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
378
373
379
374
Bool m_animateWindows; // /< Should we animate window transitions?
380
375
Original file line number Diff line number Diff line change @@ -986,10 +986,6 @@ GlobalData::GlobalData()
986
986
m_afterIntro = FALSE ;
987
987
m_allowExitOutOfMovies = FALSE ;
988
988
m_loadScreenRender = FALSE ;
989
- m_musicVolumeFactor = 0 .5f ;
990
- m_SFXVolumeFactor = 0 .5f ;
991
- m_voiceVolumeFactor = 0 .5f ;
992
- m_3DSoundPref = false ;
993
989
994
990
m_keyboardDefaultScrollFactor = m_keyboardScrollFactor = 0 .5f ;
995
991
m_scrollAmountCutoff = 10 .0f ;
Original file line number Diff line number Diff line change @@ -1204,7 +1204,6 @@ static void saveOptions( void )
1204
1204
val = GadgetSliderGetPosition (sliderMusicVolume);
1205
1205
if (val != -1 )
1206
1206
{
1207
- TheWritableGlobalData->m_musicVolumeFactor = val;
1208
1207
AsciiString prefString;
1209
1208
prefString.format (" %d" , val);
1210
1209
(*pref)[" MusicVolume" ] = prefString;
@@ -1238,7 +1237,6 @@ static void saveOptions( void )
1238
1237
TheAudio->setVolume ( sound3DVolume, (AudioAffect) (AudioAffect_Sound3D | AudioAffect_SystemSetting) );
1239
1238
1240
1239
// Save the settings in the options.ini.
1241
- TheWritableGlobalData->m_SFXVolumeFactor = val;
1242
1240
AsciiString prefString;
1243
1241
prefString.format (" %d" , REAL_TO_INT ( sound2DVolume * 100 .0f ) );
1244
1242
(*pref)[" SFXVolume" ] = prefString;
@@ -1251,7 +1249,6 @@ static void saveOptions( void )
1251
1249
val = GadgetSliderGetPosition (sliderVoiceVolume);
1252
1250
if (val != -1 )
1253
1251
{
1254
- TheWritableGlobalData->m_voiceVolumeFactor = val;
1255
1252
AsciiString prefString;
1256
1253
prefString.format (" %d" , val);
1257
1254
(*pref)[" VoiceVolume" ] = prefString;
You can’t perform that action at this time.
0 commit comments