Added lua bindings for playing sounds in SCREENMAN. Added input redirection functions to SCREENMAN for disabling non-lua screen input processing. Added OF_FALSE, OV_EOF, and OV_HOLE to error string list in RageSound for more understandable messages. Made sure RageSound doesn't delete null pointers. Updated changelog.
This commit is contained in:
+8
-2
@@ -86,7 +86,10 @@ RageSound &RageSound::operator=( const RageSound &cpy )
|
||||
m_bPlaying = false;
|
||||
m_bDeleteWhenFinished = false;
|
||||
|
||||
delete m_pSource;
|
||||
if(m_pSource != NULL)
|
||||
{
|
||||
delete m_pSource;
|
||||
}
|
||||
if( cpy.m_pSource )
|
||||
m_pSource = cpy.m_pSource->Copy();
|
||||
else
|
||||
@@ -104,7 +107,10 @@ void RageSound::Unload()
|
||||
|
||||
LockMut(m_Mutex);
|
||||
|
||||
delete m_pSource;
|
||||
if(m_pSource != NULL)
|
||||
{
|
||||
delete m_pSource;
|
||||
}
|
||||
m_pSource = NULL;
|
||||
|
||||
m_sFilePath = "";
|
||||
|
||||
Reference in New Issue
Block a user