aboutsummaryrefslogtreecommitdiff
path: root/engines/tony/mpal/mpal.cpp
diff options
context:
space:
mode:
authorPaul Gilbert2012-05-04 00:11:38 +1000
committerPaul Gilbert2012-05-04 00:11:38 +1000
commit5b2c69b1f291b1ee3d7f3be4ffd40e427b437ac6 (patch)
tree034a0b5e8b604056b767bfc283e5c3583cfe0c31 /engines/tony/mpal/mpal.cpp
parent6d0f1fca46c8bd9b5b4e7ccaf6631850c29d1447 (diff)
downloadscummvm-rg350-5b2c69b1f291b1ee3d7f3be4ffd40e427b437ac6.tar.gz
scummvm-rg350-5b2c69b1f291b1ee3d7f3be4ffd40e427b437ac6.tar.bz2
scummvm-rg350-5b2c69b1f291b1ee3d7f3be4ffd40e427b437ac6.zip
TONY: Implemented some missing and incorrect init code
Diffstat (limited to 'engines/tony/mpal/mpal.cpp')
-rw-r--r--engines/tony/mpal/mpal.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/engines/tony/mpal/mpal.cpp b/engines/tony/mpal/mpal.cpp
index 74dbedd90f..610dd59984 100644
--- a/engines/tony/mpal/mpal.cpp
+++ b/engines/tony/mpal/mpal.cpp
@@ -626,13 +626,13 @@ HGLOBAL resLoad(uint32 dwId) {
uint32 nSizeComp, nSizeDecomp;
byte *temp, *buf;
- for (i=0;i<nResources;i++)
- if (lpResources[i*2]==dwId) {
+ for (i = 0; i < nResources; i++)
+ if (lpResources[i * 2] == dwId) {
hMpr.seek(lpResources[i * 2 + 1]);
nBytesRead = hMpr.read(head, 4);
- if (nBytesRead!=4)
+ if (nBytesRead != 4)
return NULL;
- if (head[0]!='R' || head[1]!='E' || head[2]!='S' || head[3]!='D')
+ if (head[0] != 'R' || head[1] != 'E' || head[2] != 'S' || head[3] != 'D')
return NULL;
nSizeDecomp = hMpr.readUint32LE();