From 999d6c354bd365f45165ecc2c0303b6f6a8dbff1 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Sat, 21 Dec 2002 23:15:01 +0000 Subject: [PATCH] s/throw RageException/RageException::Throw/ --- stepmania/src/arch/Sound/RageSoundDriver_DSound.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/stepmania/src/arch/Sound/RageSoundDriver_DSound.cpp b/stepmania/src/arch/Sound/RageSoundDriver_DSound.cpp index 211448ac9f..7f00570a04 100644 --- a/stepmania/src/arch/Sound/RageSoundDriver_DSound.cpp +++ b/stepmania/src/arch/Sound/RageSoundDriver_DSound.cpp @@ -73,8 +73,7 @@ void RageSound_DSound::Update(float delta) for(unsigned i = 0; i < str.size(); ++i) { - if(str[i]->state != str[i]->STOPPING) - continue; + if(str[i]->state != str[i]->STOPPING) continue; if(str[i]->str_ds->GetPosition() < str[i]->flush_pos) 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(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());