diff options
author | Travis Howell | 2005-08-14 01:41:52 +0000 |
---|---|---|
committer | Travis Howell | 2005-08-14 01:41:52 +0000 |
commit | a820400f8c134a9119b5a2c5b68d614345322f45 (patch) | |
tree | cdb482abd5bd94d8d27261e96d7e2977d0e533c5 /scumm/script_v6.cpp | |
parent | 3a86eb8d2e90999f5e646d94d39e427a04bebe96 (diff) | |
download | scummvm-rg350-a820400f8c134a9119b5a2c5b68d614345322f45.tar.gz scummvm-rg350-a820400f8c134a9119b5a2c5b68d614345322f45.tar.bz2 scummvm-rg350-a820400f8c134a9119b5a2c5b68d614345322f45.zip |
Replace warnings with debug, errors or printfs:
-To catch any missing cases/functions used.
-To prevent users reporting warnings as bugs
svn-id: r18681
Diffstat (limited to 'scumm/script_v6.cpp')
-rw-r--r-- | scumm/script_v6.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/scumm/script_v6.cpp b/scumm/script_v6.cpp index 6a203df093..17fbbe4475 100644 --- a/scumm/script_v6.cpp +++ b/scumm/script_v6.cpp @@ -1185,7 +1185,7 @@ void ScummEngine_v6::o6_walkActorToObj() { // FIXME: This is a hack to work around bug #742676 SAM: Fish Farm. // Note quite sure why it happens, though, if it's normal or due to // a bug in the ScummVM code. - warning("o6_walkActorToObj: invalid actor %d", obj); + debug(0, "o6_walkActorToObj: invalid actor %d", obj); return; } if (!a->isInCurrentRoom() || !a2->isInCurrentRoom()) @@ -2555,7 +2555,7 @@ void ScummEngine_v6::o6_kernelSetFunctions() { setupShadowPalette(0, args[1], args[2], args[3], args[4], args[5]); break; case 114: - warning("o6_kernelSetFunctions: stub114()"); + error("o6_kernelSetFunctions: stub114()"); break; case 117: freezeScripts(2); @@ -2611,7 +2611,7 @@ void ScummEngine_v6::o6_kernelSetFunctions() { case 109: // Case 108 and 109 share the same function if (num != 6) - warning("o6_kernelSetFunctions sub op %d: expected 6 params but got %d", args[0], num); + error("o6_kernelSetFunctions sub op %d: expected 6 params but got %d", args[0], num); setupShadowPalette(args[3], args[4], args[5], args[1], args[2], 0, 256); break; case 110: @@ -2639,7 +2639,7 @@ void ScummEngine_v6::o6_kernelSetFunctions() { // still be drawn in color. setDirtyColors(0, 255); } else - warning("stub o6_kernelSetFunctions_114()"); + error("stub o6_kernelSetFunctions_114()"); break; case 117: // Sam & Max uses this opcode in script-43, right @@ -2693,7 +2693,7 @@ void ScummEngine_v6::o6_kernelGetFunctions() { VirtScreen *vs = &virtscr[0]; if (args[1] < 0 || args[1] >= vs->w || args[2] < 0 || args[2] >= vs->h) { // FIXME: Until we know what to do in this case... - warning("o6_kernelGetFunctions:113: asking for pixel (%d, %d) outside of %dx%d screen", args[1], args[2], vs->w, vs->h); + debug(0, "o6_kernelGetFunctions:113: asking for pixel (%d, %d) outside of %dx%d screen", args[1], args[2], vs->w, vs->h); push(0); } else push(*((byte *)vs->pixels + args[1] + args[2] * vs->pitch)); @@ -2953,7 +2953,7 @@ void ScummEngine_v6::o6_findAllObjects() { int i = 1; if (room != _currentRoom) - warning("o6_findAllObjects: current room is not %d", room); + error("o6_findAllObjects: current room is not %d", room); writeVar(0, 0); defineArray(0, kIntArray, 0, _numLocalObjects + 1); writeArray(0, 0, 0, _numLocalObjects); |