diff options
author | Gregory Montoir | 2004-08-06 11:28:33 +0000 |
---|---|---|
committer | Gregory Montoir | 2004-08-06 11:28:33 +0000 |
commit | 79f235ef269b8c01dc7dff5b43a80c755fbcdb61 (patch) | |
tree | d7e2522fc8f6527773c04395a5c6de566270a2b9 /queen/cutaway.cpp | |
parent | f0d7ee966b519563fb25f8ab448ecf62fb7262e6 (diff) | |
download | scummvm-rg350-79f235ef269b8c01dc7dff5b43a80c755fbcdb61.tar.gz scummvm-rg350-79f235ef269b8c01dc7dff5b43a80c755fbcdb61.tar.bz2 scummvm-rg350-79f235ef269b8c01dc7dff5b43a80c755fbcdb61.zip |
minor cleanup
svn-id: r14484
Diffstat (limited to 'queen/cutaway.cpp')
-rw-r--r-- | queen/cutaway.cpp | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/queen/cutaway.cpp b/queen/cutaway.cpp index bb12e390f6..495c41dfad 100644 --- a/queen/cutaway.cpp +++ b/queen/cutaway.cpp @@ -114,7 +114,7 @@ void Cutaway::load(const char *filename) { byte *bankNamesPtr = _fileData + READ_BE_UINT16(ptr); ptr += 2; - //debug(6, "Bank name file offset = %08x", 20 + bankNamesPtr - _fileData); + debug(6, "Bank name file offset = %08x", 20 + bankNamesPtr - _fileData); _objectData = ptr; @@ -159,7 +159,7 @@ void Cutaway::loadStrings(byte *ptr) { int bankNameCount = READ_BE_UINT16(ptr); ptr += 2; - //debug(6, "Bank name count = %i", bankNameCount); + debug(6, "Bank name count = %i", bankNameCount); /* The _bankNames zero-based array is the one-based BANK_NAMEstr array in @@ -170,7 +170,7 @@ void Cutaway::loadStrings(byte *ptr) { ptr = Talk::getString(ptr, _bankNames[j], MAX_FILENAME_LENGTH); if (_bankNames[j][0]) { - //debug(6, "Bank name %i = '%s'", j, _bankNames[j]); + debug(6, "Bank name %i = '%s'", j, _bankNames[j]); j++; } } @@ -272,7 +272,7 @@ byte *Cutaway::turnOnPeople(byte *ptr, CutawayObject &object) { for (int i = 0; i < object.personCount; i++) { object.person[i] = (int16)READ_BE_INT16(ptr); ptr += 2; - //debug(6, "[%i] Turn on person %i", i, object.person[i]); + debug(7, "[%i] Turn on person %i", i, object.person[i]); } return ptr; @@ -726,13 +726,10 @@ byte *Cutaway::handleAnimation(byte *ptr, CutawayObject &object) { } static void findCdCut(const char *basename, int index, char *result) { - // Function find_cd_cut, lines 5-15 in execute.c - strcpy(result, basename); for (int i = strlen(basename); i < 5; i++) result[i] = '_'; snprintf(result + 5, 3, "%02i", index); - //debug(6, "findCdCut(\"%s\", %i, \"%s\")", basename, index, result); } void Cutaway::handlePersonRecord( |