[Scummvm-cvs-logs] scummvm master -> cc1bb39956ce134474845eb5d0bb192db3059b55
bluegr
bluegr at gmail.com
Tue Jan 22 00:58:33 CET 2013
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
cc1bb39956 SCI: Add documentation for underscores in object names and fix a warning
Commit: cc1bb39956ce134474845eb5d0bb192db3059b55
https://github.com/scummvm/scummvm/commit/cc1bb39956ce134474845eb5d0bb192db3059b55
Author: Filippos Karapetis (bluegr at gmail.com)
Date: 2013-01-21T15:57:34-08:00
Commit Message:
SCI: Add documentation for underscores in object names and fix a warning
Changed paths:
engines/sci/console.cpp
diff --git a/engines/sci/console.cpp b/engines/sci/console.cpp
index 2019415..1bf3323 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);
}
More information about the Scummvm-git-logs
mailing list