diff options
| author | Travis Howell | 2004-07-04 03:25:24 +0000 |
|---|---|---|
| committer | Travis Howell | 2004-07-04 03:25:24 +0000 |
| commit | 84ea22d80cb85f2c43d32a6ad06d31da02ffe7b0 (patch) | |
| tree | e3aa24735c07b5cbbe4e6f407079674ec04fc157 | |
| parent | ac04b2e95bfcbe1e40fa00a8b05602558f1329b6 (diff) | |
| download | scummvm-rg350-84ea22d80cb85f2c43d32a6ad06d31da02ffe7b0.tar.gz scummvm-rg350-84ea22d80cb85f2c43d32a6ad06d31da02ffe7b0.tar.bz2 scummvm-rg350-84ea22d80cb85f2c43d32a6ad06d31da02ffe7b0.zip | |
Switch warnings to debug, since they occur normally in games.
svn-id: r14164
| -rw-r--r-- | scumm/actor.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/scumm/actor.cpp b/scumm/actor.cpp index 47d2fb853e..280d7338a5 100644 --- a/scumm/actor.cpp +++ b/scumm/actor.cpp @@ -1662,8 +1662,13 @@ void Actor::remapActorPalette(int r_fact, int g_fact, int b_fact, int threshold) int r, g, b; byte akpl_color; - if (!isInCurrentRoom() || costume < 1 || costume >= _vm->_numCostumes - 1) + if (!isInCurrentRoom()) { + debugC(DEBUG_ACTORS, "Remap actor %d not in current room", number); + return; + } else if (costume < 1 || costume >= _vm->_numCostumes - 1) { + debugC(DEBUG_ACTORS, "Remap actor %d invalid costume %d", number, costume); return; + } akos = _vm->getResourceAddress(rtCostume, costume); if (!akos) { @@ -1686,7 +1691,7 @@ void Actor::remapActorPalette(int r_fact, int g_fact, int b_fact, int threshold) rgbs = _vm->findResource(MKID('RGBS'), akos); if (!rgbs) { - warning("Can't remap actor %d costume %d doesn't contain an RGB block", number, costume); + debugC(DEBUG_ACTORS, "Can't remap actor %d costume %d doesn't contain an RGB block", number, costume); return; } // skip resource header |
