fixed regression introduced in bb57521ef1
causing the game to crash when trying to incorrectly re-init SDL_mixer for change in sample rate - which isn't needed in the first place
This commit is contained in:
parent
0c10c9db7f
commit
8534b9705b
|
@ -765,10 +765,15 @@ int read_hamfile()
|
||||||
{
|
{
|
||||||
shareware = 1;
|
shareware = 1;
|
||||||
GameArg.SndDigiSampleRate = SAMPLE_RATE_11K;
|
GameArg.SndDigiSampleRate = SAMPLE_RATE_11K;
|
||||||
|
#ifdef USE_SDLMIXER
|
||||||
|
if (GameArg.SndDisableSdlMixer)
|
||||||
|
#endif
|
||||||
|
{
|
||||||
digi_close();
|
digi_close();
|
||||||
digi_init();
|
digi_init();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (ham_fp == NULL) {
|
if (ham_fp == NULL) {
|
||||||
Must_write_hamfile = 1;
|
Must_write_hamfile = 1;
|
||||||
|
|
Loading…
Reference in a new issue