From efb6f4dcb118930f749f891b7e3dbf4038856301 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Tue, 7 Oct 2003 04:10:34 +0000 Subject: [PATCH] Don't pretend the sound position is 0 when seeking past end of file. --- stepmania/src/RageSound.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/stepmania/src/RageSound.cpp b/stepmania/src/RageSound.cpp index 7f6626a437..c092e6dd25 100644 --- a/stepmania/src/RageSound.cpp +++ b/stepmania/src/RageSound.cpp @@ -695,13 +695,11 @@ bool RageSound::SetPositionSamples( int samples ) if(ret == 0 && ms != 0) { /* We were told to seek somewhere, and we got 0 instead, which means - * we passed EOF. This could be a truncated file or invalid data. Warn - * about it and jump back to the beginning. */ + * we passed EOF. This could be a truncated file or invalid data. */ LOG->Warn("SetPositionSamples: %i ms is beyond EOF in %s", ms, GetLoadedFilePath().c_str()); - position = 0; - return false; /* failed (but recoverable) */ + return false; /* failed */ } return true;