aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/graphics/screen_item32.h
diff options
context:
space:
mode:
authorColin Snover2016-03-08 10:27:15 -0600
committerColin Snover2016-03-08 10:29:05 -0600
commita2e9cc4965340add73db19c3d602ef5a910fe336 (patch)
treedbbefd6633a3994828819ad6998f9cc79635e8e3 /engines/sci/graphics/screen_item32.h
parentea3f2ba60eae1eaeebec86662e6ccaee51a60657 (diff)
downloadscummvm-rg350-a2e9cc4965340add73db19c3d602ef5a910fe336.tar.gz
scummvm-rg350-a2e9cc4965340add73db19c3d602ef5a910fe336.tar.bz2
scummvm-rg350-a2e9cc4965340add73db19c3d602ef5a910fe336.zip
SCI32: Clean up kIsOnMe and fix rounding bug
The implementation was not correctly rounding the scaled position with mulru, leading to occasionally incorrect hit detection at the boundaries of boxes.
Diffstat (limited to 'engines/sci/graphics/screen_item32.h')
-rw-r--r--engines/sci/graphics/screen_item32.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/sci/graphics/screen_item32.h b/engines/sci/graphics/screen_item32.h
index 0840570721..06e1f6072f 100644
--- a/engines/sci/graphics/screen_item32.h
+++ b/engines/sci/graphics/screen_item32.h
@@ -125,7 +125,7 @@ public:
* item. This member is populated by calling
* `getCelObj`.
*/
- CelObj *_celObj;
+ mutable CelObj *_celObj;
/**
* If set, the priority for this screen item is fixed
@@ -250,7 +250,7 @@ public:
* screen item. If a cel object does not already exist,
* one will be created and assigned.
*/
- CelObj &getCelObj();
+ CelObj &getCelObj() const;
void printDebugInfo(Console *con) const;