aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohannes Schickel2010-11-18 21:45:31 +0000
committerJohannes Schickel2010-11-18 21:45:31 +0000
commit94d3d82f5909c21a03306470dbec6a0941e77b16 (patch)
treee92e373348c3726753f96f0213e61dc4060e8a58
parentc325d815d295e4b51f9c53cdf646210f37508fc2 (diff)
downloadscummvm-rg350-94d3d82f5909c21a03306470dbec6a0941e77b16.tar.gz
scummvm-rg350-94d3d82f5909c21a03306470dbec6a0941e77b16.tar.bz2
scummvm-rg350-94d3d82f5909c21a03306470dbec6a0941e77b16.zip
SCI: Slight formatting fix and use \t instead of a tab character in debugN.
svn-id: r54349
-rw-r--r--engines/sci/engine/scriptdebug.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/engines/sci/engine/scriptdebug.cpp b/engines/sci/engine/scriptdebug.cpp
index 5ad6fbf561..1240e7410c 100644
--- a/engines/sci/engine/scriptdebug.cpp
+++ b/engines/sci/engine/scriptdebug.cpp
@@ -192,14 +192,13 @@ reg_t disassemble(EngineState *s, reg_t pos, bool printBWTag, bool printBytecode
if ((opcode == op_pTos) || (opcode == op_sTop) || (opcode == op_pToa) || (opcode == op_aTop) ||
(opcode == op_dpToa) || (opcode == op_ipToa) || (opcode == op_dpTos) || (opcode == op_ipTos)) {
const Object *obj = s->_segMan->getObject(s->xs->objp);
- if (!obj)
+ if (!obj) {
warning("Attempted to reference on non-object at %04x:%04x", PRINT_REG(s->xs->objp));
- else
- {
+ } else {
if (getSciVersion() == SCI_VERSION_3)
- debugN(" (%s)", g_sci->getKernel()->getSelectorName(param_value).c_str());
+ debugN("\t(%s)", g_sci->getKernel()->getSelectorName(param_value).c_str());
else
- debugN(" (%s)", g_sci->getKernel()->getSelectorName(obj->propertyOffsetToId(s->_segMan, param_value)).c_str());
+ debugN("\t(%s)", g_sci->getKernel()->getSelectorName(obj->propertyOffsetToId(s->_segMan, param_value)).c_str());
}
}
}