aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorFilippos Karapetis2013-01-22 01:57:34 +0200
committerFilippos Karapetis2013-01-22 01:57:34 +0200
commitcc1bb39956ce134474845eb5d0bb192db3059b55 (patch)
tree187af6f0969271a1b43f4130217d7a24732d53f1 /engines
parent5d90c6fb3efd4e5c6544a550ff603b96db23f331 (diff)
downloadscummvm-rg350-cc1bb39956ce134474845eb5d0bb192db3059b55.tar.gz
scummvm-rg350-cc1bb39956ce134474845eb5d0bb192db3059b55.tar.bz2
scummvm-rg350-cc1bb39956ce134474845eb5d0bb192db3059b55.zip
SCI: Add documentation for underscores in object names and fix a warning
Diffstat (limited to 'engines')
-rw-r--r--engines/sci/console.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/engines/sci/console.cpp b/engines/sci/console.cpp
index 2019415ecc..1bf3323a7b 100644
--- a/engines/sci/console.cpp
+++ b/engines/sci/console.cpp
@@ -3633,6 +3633,8 @@ bool Console::cmdAddresses(int argc, const char **argv) {
DebugPrintf(" - ?obj -- Looks up an object with the specified name, uses its address. This will abort if\n");
DebugPrintf(" the object name is ambiguous; in that case, a list of addresses and indices is provided.\n");
DebugPrintf(" ?obj.idx may be used to disambiguate 'obj' by the index 'idx'.\n");
+ DebugPrintf(" Underscores are used as substitute characters for spaces in object names.\n");
+ DebugPrintf(" For example, an object named \"Glass Jar\" can be accessed as \"Glass_Jar\".\n");
return true;
}
@@ -3843,7 +3845,7 @@ static int parse_reg_t(EngineState *s, const char *str, reg_t *dest, bool mayBeV
}
// Replace all underscores in the name with spaces
- for (int i = 0; i < str_objname.size(); i++) {
+ for (uint i = 0; i < str_objname.size(); i++) {
if (str_objname[i] == '_')
str_objname.setChar(' ', i);
}