diff options
author | Filippos Karapetis | 2010-06-15 15:02:52 +0000 |
---|---|---|
committer | Filippos Karapetis | 2010-06-15 15:02:52 +0000 |
commit | e94e91222c70537740ce9610cd8eecfa15f93cb0 (patch) | |
tree | 4e7056c54b138edcb2f0cb8e36fd723ee84d931c /engines/sci/engine/kernel32.cpp | |
parent | ab558b45d252743797bca27d2240bf0e2057863f (diff) | |
download | scummvm-rg350-e94e91222c70537740ce9610cd8eecfa15f93cb0.tar.gz scummvm-rg350-e94e91222c70537740ce9610cd8eecfa15f93cb0.tar.bz2 scummvm-rg350-e94e91222c70537740ce9610cd8eecfa15f93cb0.zip |
Fixed comments
svn-id: r49858
Diffstat (limited to 'engines/sci/engine/kernel32.cpp')
-rw-r--r-- | engines/sci/engine/kernel32.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/sci/engine/kernel32.cpp b/engines/sci/engine/kernel32.cpp index 8c5cb019b9..0a510dabbb 100644 --- a/engines/sci/engine/kernel32.cpp +++ b/engines/sci/engine/kernel32.cpp @@ -796,12 +796,12 @@ reg_t kOnMe(EngineState *s, int argc, reg_t *argv) { uint16 itemY = readSelectorValue(s->_segMan, targetObject, SELECTOR(y)); if (nsRect.left < 0 || nsRect.top < 0) { // If top and left are negative, we need to adjust coordinates by the item's x and y + // (e.g. happens in GK1, day 1, with detective Mosely's hotspot in his office) nsRect.translate(itemX, itemY); } // HACK: nsLeft and nsTop can be invalid, so try and fix them here using x and y - // (e.g. with the inventory screen in GK1 or detective Mosely in his office) - // Not sure why this is happening, but at least this hack fixes most of the issues + // (e.g. with the inventory screen in GK1) if (nsRect.left == itemY && nsRect.top == itemX) { // Swap the values, as they're inversed (eh???) nsRect.left = itemX; |