s/throw RageException/RageException::Throw/
This commit is contained in:
@@ -73,8 +73,7 @@ void RageSound_DSound::Update(float delta)
|
|||||||
|
|
||||||
for(unsigned i = 0; i < str.size(); ++i)
|
for(unsigned i = 0; i < str.size(); ++i)
|
||||||
{
|
{
|
||||||
if(str[i]->state != str[i]->STOPPING)
|
if(str[i]->state != str[i]->STOPPING) continue;
|
||||||
continue;
|
|
||||||
|
|
||||||
if(str[i]->str_ds->GetPosition() < str[i]->flush_pos)
|
if(str[i]->str_ds->GetPosition() < str[i]->flush_pos)
|
||||||
continue; /* stopping but still flushing */
|
continue; /* stopping but still flushing */
|
||||||
@@ -272,7 +271,7 @@ int RageSound_DSound::GetPosition(const RageSound *snd) const
|
|||||||
if(stream_pool[i]->snd == snd) break;
|
if(stream_pool[i]->snd == snd) break;
|
||||||
|
|
||||||
if(i == stream_pool.size())
|
if(i == stream_pool.size())
|
||||||
throw RageException("GetPosition: Sound %s is not being played", snd->GetLoadedFilePath());
|
RageException::Throw("GetPosition: Sound %s is not being played", snd->GetLoadedFilePath());
|
||||||
|
|
||||||
ASSERT(i != stream_pool.size());
|
ASSERT(i != stream_pool.size());
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user