From 0395b26d23ebb686a81424d15cf5c054bae83b0f Mon Sep 17 00:00:00 2001
From: Randy Heit <rheit@zdoom.fake>
Date: Sat, 31 May 2008 01:44:11 +0000
Subject: [PATCH] - Fixed: S_StartNamedSound() looked for SECF_SILENT in
 MoreFlags instead of Flags.

SVN r1004 (trunk)
---
 docs/rh-log.txt | 2 ++
 src/s_sound.cpp | 3 +--
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/docs/rh-log.txt b/docs/rh-log.txt
index 3d955b9e2b..e9d1263bc9 100644
--- a/docs/rh-log.txt
+++ b/docs/rh-log.txt
@@ -1,4 +1,6 @@
 May 30, 2008
+- Fixed: S_StartNamedSound() looked for SECF_SILENT in MoreFlags instead of
+  Flags.
 - Fixed: DSBarInfo::updateState() sprung leaks and didn't allocate enough
   space for the fullStateName string.
 - Disabled DUMB's mono destination mixers. It's not like I'm ever going to
diff --git a/src/s_sound.cpp b/src/s_sound.cpp
index 4f72bac8c3..b9cc4f864a 100644
--- a/src/s_sound.cpp
+++ b/src/s_sound.cpp
@@ -881,8 +881,7 @@ void S_StartNamedSound (AActor *ent, fixed_t *pt, int channel,
 {
 	int sfx_id;
 	
-	if (name == NULL ||
-		(ent != NULL && ent->Sector->MoreFlags & SECF_SILENT))
+	if (name == NULL || (ent != NULL && ent->Sector->Flags & SECF_SILENT))
 	{
 		return;
 	}