MYST3: Turn some warnings into debugs

This commit is contained in:
Bastien Bouclet 2014-12-21 16:01:25 +01:00
parent 86876c6bbc
commit b7e8ef5dc4
2 changed files with 4 additions and 4 deletions

View File

@ -329,7 +329,7 @@ void Script::runOp(Context &c, const Opcode &op) {
if (cmd.op != 0)
(this->*(cmd.proc))(c, op);
else
warning("Trying to run invalid opcode %d", op.op);
debugC(kDebugScript, "Trying to run invalid opcode %d", op.op);
}
void Script::runSingleOp(const Opcode &op) {
@ -1697,7 +1697,7 @@ void Script::leverDrag(Context &c, const Opcode &cmd) {
_vm->_state->setDragEnded(!mousePressed);
if (_vm->_state->getDragLeverSpeed()) {
warning("Interaction with var 58 is missing in opcode 127.");
debugC(kDebugScript, "Interaction with var 58 is missing in opcode 127.");
return;
}
@ -1760,7 +1760,7 @@ void Script::leverDragPositions(Context &c, const Opcode &cmd) {
_vm->_state->setDragEnded(!mousePressed);
if (_vm->_state->getDragLeverSpeed()) {
warning("Interaction with var 58 is missing in opcode 132.");
debugC(kDebugScript, "Interaction with var 58 is missing in opcode 132.");
return;
}

View File

@ -522,7 +522,7 @@ void GameState::setVar(uint16 var, int32 value) {
if (_varDescriptions.contains(var)) {
const VarDescription &d = _varDescriptions.getVal(var);
if (d.unknown)
warning("A script is writing to the unimplemented engine-mapped var %d (%s)", var, d.name);
debugC(kDebugScript, "A script is writing to the unimplemented engine-mapped var %d (%s)", var, d.name);
}
_data.vars[var] = value;