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:
Kyzentun
2015-04-08 16:15:14 -06:00
parent 84b57e7ca4
commit 8993cfe729
16 changed files with 58 additions and 18 deletions
+4
View File
@@ -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;
}