aboutsummaryrefslogtreecommitdiff
path: root/engines/tony/mpal
diff options
context:
space:
mode:
authorPaul Gilbert2012-05-11 08:44:50 +1000
committerPaul Gilbert2012-05-11 08:44:50 +1000
commit724deb6b84b8a5f5a3aa96adc2a512c962f7081a (patch)
treedbae3811dfe14c39e75c782ada6f89b27ea52d42 /engines/tony/mpal
parent82361a3ea3efb9b6454eb4805e777cd4bfc3a0e3 (diff)
downloadscummvm-rg350-724deb6b84b8a5f5a3aa96adc2a512c962f7081a.tar.gz
scummvm-rg350-724deb6b84b8a5f5a3aa96adc2a512c962f7081a.tar.bz2
scummvm-rg350-724deb6b84b8a5f5a3aa96adc2a512c962f7081a.zip
TONY: Bugfixes for showing the credits screen.
Diffstat (limited to 'engines/tony/mpal')
-rw-r--r--engines/tony/mpal/mpal.cpp4
-rw-r--r--engines/tony/mpal/mpal.h2
2 files changed, 3 insertions, 3 deletions
diff --git a/engines/tony/mpal/mpal.cpp b/engines/tony/mpal/mpal.cpp
index da736a138f..e82df11328 100644
--- a/engines/tony/mpal/mpal.cpp
+++ b/engines/tony/mpal/mpal.cpp
@@ -422,7 +422,7 @@ static int locGetOrderFromNum(uint32 nLoc) {
static int msgGetOrderFromNum(uint32 nMsg) {
int i;
- LPMPALMSG msg=lpmmMsgs;
+ LPMPALMSG msg = lpmmMsgs;
for (i = 0; i < nMsgs; i++, msg++)
if (msg->wNum == nMsg)
@@ -542,7 +542,7 @@ static char *DuplicateMessage(uint32 nMsgOrd) {
origmsg = (const char *)GlobalLock(lpmmMsgs[nMsgOrd].hText);
j = 0;
- while (origmsg[j] != '\0' || origmsg[j+1] != '\0')
+ while (origmsg[j] != '\0' || origmsg[j + 1] != '\0')
j++;
j += 2;
diff --git a/engines/tony/mpal/mpal.h b/engines/tony/mpal/mpal.h
index 9a85f2df17..cd46219b57 100644
--- a/engines/tony/mpal/mpal.h
+++ b/engines/tony/mpal/mpal.h
@@ -566,7 +566,7 @@ typedef LPITEMIRQFUNCTION* LPLPITEMIRQFUNCTION;
\****************************************************************************/
#define mpalQueryDoDialog(nDialog,nGroup) \
- mpalQueryHANDLE(MPQ_DO_DIALOG, (uint32)(nDialog),(uint32)(nGroup))
+ mpalQueryDWORD(MPQ_DO_DIALOG, (uint32)(nDialog),(uint32)(nGroup))
/****************************************************************************\