aboutsummaryrefslogtreecommitdiff
path: root/engines/tinsel/handle.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/tinsel/handle.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/tinsel/handle.cpp')
-rw-r--r--engines/tinsel/handle.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/tinsel/handle.cpp b/engines/tinsel/handle.cpp
index b463244123..ba09675b3f 100644
--- a/engines/tinsel/handle.cpp
+++ b/engines/tinsel/handle.cpp
@@ -382,7 +382,7 @@ uint8 *LockMem(SCNHANDLE offset) {
return (uint8 *)pH->pNode + sizeof(MEM_NODE) + (offset & OFFSETMASK);
} else if (handle == cdPlayHandle) {
// Must be in currently loaded/loadable range
- if(offset < cdBaseHandle || offset >= cdTopHandle)
+ if (offset < cdBaseHandle || offset >= cdTopHandle)
error("Overlapping (in time) CD-plays!");
if (pH->pNode->pBaseAddr && (pH->filesize & fLoaded))
@@ -394,7 +394,7 @@ uint8 *LockMem(SCNHANDLE offset) {
MemoryReAlloc(pH->pNode, cdTopHandle-cdBaseHandle,
DWM_MOVEABLE | DWM_DISCARDABLE);
- if(pH->pNode->pBaseAddr == NULL)
+ if (pH->pNode->pBaseAddr == NULL)
error("Out of memory");
LoadCDGraphData(pH);