Browse Source

Make sure that sgbSaveSoundOn is initialized

Fixes #480
pull/527/head
Anders Jenbo 6 years ago
parent
commit
171323b987
  1. 1
      Source/monster.h
  2. 1
      SourceX/sound.cpp

1
Source/monster.h

@ -6,6 +6,7 @@ extern int MissileFileFlag;
extern int monstkills[MAXMONSTERS];
extern int monstactive[MAXMONSTERS];
extern int nummonsters;
extern BOOLEAN sgbSaveSoundOn;
extern MonsterStruct monster[MAXMONSTERS];
extern int totalmonsters;
extern CMonster Monsters[MAX_LVLMTYPES];

1
SourceX/sound.cpp

@ -120,6 +120,7 @@ void snd_init(HWND hWnd)
{
sound_load_volume("Sound Volume", &sglSoundVolume);
gbSoundOn = sglSoundVolume > VOLUME_MIN;
sgbSaveSoundOn = gbSoundOn;
sound_load_volume("Music Volume", &sglMusicVolume);
gbMusicOn = sglMusicVolume > VOLUME_MIN;

Loading…
Cancel
Save