Added MuteActions preference checking to RageSound::PlayCopy. Modified ActorSound and GameSoundManager::PlayOnce to take is_action args. Fixed doc for playcommand to mention the param table.
This commit is contained in:
@@ -800,6 +800,10 @@ public:
|
||||
static int PlayOnce( T* p, lua_State *L )
|
||||
{
|
||||
RString sPath = SArg(1);
|
||||
if(lua_toboolean(L, 2) && PREFSMAN->m_MuteActions)
|
||||
{
|
||||
COMMON_RETURN_SELF;
|
||||
}
|
||||
p->PlayOnce( sPath );
|
||||
COMMON_RETURN_SELF;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user