aboutsummaryrefslogtreecommitdiff
path: root/engines/gob/sound/cdrom.cpp
diff options
context:
space:
mode:
authorMax Horn2009-01-29 05:26:12 +0000
committerMax Horn2009-01-29 05:26:12 +0000
commitac59693be26b4239aaaf380896a1e1b753172546 (patch)
treeb64a9b664917ed86e78e90560b034f0b1ee49054 /engines/gob/sound/cdrom.cpp
parenta0a82d911c77b63f2069dbc39ab26394fe4d377d (diff)
downloadscummvm-rg350-ac59693be26b4239aaaf380896a1e1b753172546.tar.gz
scummvm-rg350-ac59693be26b4239aaaf380896a1e1b753172546.tar.bz2
scummvm-rg350-ac59693be26b4239aaaf380896a1e1b753172546.zip
A ton of code formatting fixes; also fixed warnings about single line loops like 'while(cond);' by inserting newlines
svn-id: r36127
Diffstat (limited to 'engines/gob/sound/cdrom.cpp')
-rw-r--r--engines/gob/sound/cdrom.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/engines/gob/sound/cdrom.cpp b/engines/gob/sound/cdrom.cpp
index eef8025cc2..b68ebd0c5b 100644
--- a/engines/gob/sound/cdrom.cpp
+++ b/engines/gob/sound/cdrom.cpp
@@ -94,7 +94,8 @@ void CDROM::startTrack(const char *trackName) {
stopPlaying();
_curTrackBuffer = matchPtr;
- while (getTrackPos() >= 0);
+ while (getTrackPos() >= 0)
+ ;
uint32 start = READ_LE_UINT32(matchPtr + 12);
uint32 end = READ_LE_UINT32(matchPtr + 16);
@@ -151,7 +152,8 @@ const char *CDROM::getCurTrack() const {
void CDROM::stopPlaying() {
stop();
- while (getTrackPos() != -1);
+ while (getTrackPos() != -1)
+ ;
}
void CDROM::stop() {