From e94e91222c70537740ce9610cd8eecfa15f93cb0 Mon Sep 17 00:00:00 2001 From: Filippos Karapetis Date: Tue, 15 Jun 2010 15:02:52 +0000 Subject: Fixed comments svn-id: r49858 --- engines/sci/engine/kernel32.cpp | 4 ++-- 1 file 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; -- cgit v1.2.3