aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStrangerke2012-08-29 08:14:41 +0200
committerStrangerke2012-08-29 08:14:41 +0200
commita29f1fb04ca4ee84986c359f1a1743d16c675487 (patch)
treefa4a68a829b22be4aeaa7d2e825e8b589f27b8a6
parent92a9820f3371037fa9009e4b2c9831f169cd8809 (diff)
downloadscummvm-rg350-a29f1fb04ca4ee84986c359f1a1743d16c675487.tar.gz
scummvm-rg350-a29f1fb04ca4ee84986c359f1a1743d16c675487.tar.bz2
scummvm-rg350-a29f1fb04ca4ee84986c359f1a1743d16c675487.zip
TONY: Remove some dead code
-rw-r--r--engines/tony/mpal/mpal.cpp21
1 files changed, 1 insertions, 20 deletions
diff --git a/engines/tony/mpal/mpal.cpp b/engines/tony/mpal/mpal.cpp
index 540dee664f..862ea53824 100644
--- a/engines/tony/mpal/mpal.cpp
+++ b/engines/tony/mpal/mpal.cpp
@@ -637,7 +637,7 @@ void ScriptThread(CORO_PARAM, const void *param) {
_ctx->p->_arg3 = s->_command[_ctx->k]._arg3;
_ctx->p->_arg4 = s->_command[_ctx->k]._arg4;
- // !!! New process management
+ // !!! New process management
if ((cfHandles[_ctx->numHandles++] = CoroScheduler.createProcess(CustomThread, &_ctx->p, sizeof(LPCFCALL))) == 0) {
GLOBALS._mpalError = 1;
@@ -1413,10 +1413,6 @@ bool mpalInit(const char *lpszMpcFileName, const char *lpszMprFileName,
uint32 dwSizeDecomp, dwSizeComp;
byte *cmpbuf;
- //printf("Item: %lu\n", sizeof(MPALITEM));
- //printf("Script: %lu\n", sizeof(MPALSCRIPT));
- //printf("Dialog: %lu\n", sizeof(MPALDIALOG));
-
/* Save the array of custom functions */
GLOBALS._lplpFunctions = lplpcfArray;
GLOBALS._lplpFunctionStrings = lpcfStrings;
@@ -1480,21 +1476,6 @@ bool mpalInit(const char *lpszMpcFileName, const char *lpszMprFileName,
globalDestroy(lpMpcImage);
- /* Calculate memory usage */
- /*
- {
- char errbuf[256];
- wsprintf(errbuf,"Utilizzo in RAM: VAR %lu, MSG %lu, DLG %lu, ITM %lu, LOC %lu, SCR %lu",
- GLOBALS.nVars*sizeof(MPALVAR),
- GLOBALS.nMsgs*sizeof(MPALMSG),
- GLOBALS.nDialogs*sizeof(MPALDIALOG),
- GLOBALS.nItems*sizeof(MPALITEM),
- GLOBALS.nLocations*sizeof(MPALLOCATION),
- GLOBALS.nScripts*sizeof(MPALSCRIPT));
- MessageBox(NULL,errbuf,"Dump",MB_OK);
- }
-*/
-
/* Open the MPR file */
if (!GLOBALS._hMpr.open(lpszMprFileName))
return false;