OLD_SOUND_FLAG is valid only for V3 games. For V5+, the game wants to use UNDO.
authorDavid Griffith <dave@661.org>
Wed, 19 Jun 2019 08:09:57 +0000 (01:09 -0700)
committerDavid Griffith <dave@661.org>
Wed, 19 Jun 2019 08:09:57 +0000 (01:09 -0700)
src/common/sound.c

index 7c2e65671d5450efac599f81b63ecb1c8c2dc0d8..b1cbf4c247a313bbb1a1d74b49d2aca417de9ad6 100644 (file)
@@ -48,7 +48,7 @@ static bool playing = FALSE;
  */
 void init_sound (void)
 {
-    if ((h_flags & SOUND_FLAG) || (h_flags & OLD_SOUND_FLAG))  {
+    if ((h_flags & SOUND_FLAG) || (h_version == V3 && (h_flags & OLD_SOUND_FLAG))) {
        f_setup.sound_flag = TRUE;
        locked = FALSE;
        playing = FALSE;