From a30985f2c0f6e7a3c2932a4a8dfb5e9d81907bdd Mon Sep 17 00:00:00 2001 From: Charles Date: Thu, 26 Jul 2001 15:45:30 +0000 Subject: [PATCH] --- source/friend/fgary.cpp | 2 +- source/hazard/hrweight.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/source/friend/fgary.cpp b/source/friend/fgary.cpp index 75ed876d0..493202587 100644 --- a/source/friend/fgary.cpp +++ b/source/friend/fgary.cpp @@ -234,7 +234,7 @@ void CNpcGaryFriend::think( int _frames ) if ( m_started ) { - if ( m_soundId == NOT_PLAYING ) + if ( canRender() && m_soundId == NOT_PLAYING ) { m_soundId = (int) CSoundMediator::playSfx( CSoundMediator::SFX_GARY_DE_SNAIL, true ); } diff --git a/source/hazard/hrweight.cpp b/source/hazard/hrweight.cpp index 30ef76a54..5f15f4f2a 100644 --- a/source/hazard/hrweight.cpp +++ b/source/hazard/hrweight.cpp @@ -125,7 +125,7 @@ void CNpcRisingWeightHazard::processMovement( int _frames ) } else { - if ( m_soundId == NOT_PLAYING ) + if ( canRender() && m_soundId == NOT_PLAYING ) { m_soundId = (int) CSoundMediator::playSfx( CSoundMediator::SFX_PULLEY, true, true ); } @@ -141,7 +141,7 @@ void CNpcRisingWeightHazard::processMovement( int _frames ) } else { - if ( m_soundId == NOT_PLAYING ) + if ( canRender() && m_soundId == NOT_PLAYING ) { m_soundId = (int) CSoundMediator::playSfx( CSoundMediator::SFX_PULLEY, true, true ); }