diff options
author | Colin Snover | 2016-03-08 10:27:15 -0600 |
---|---|---|
committer | Colin Snover | 2016-03-08 10:29:05 -0600 |
commit | a2e9cc4965340add73db19c3d602ef5a910fe336 (patch) | |
tree | dbbefd6633a3994828819ad6998f9cc79635e8e3 /engines/sci/graphics/screen_item32.cpp | |
parent | ea3f2ba60eae1eaeebec86662e6ccaee51a60657 (diff) | |
download | scummvm-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.cpp')
-rw-r--r-- | engines/sci/graphics/screen_item32.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/sci/graphics/screen_item32.cpp b/engines/sci/graphics/screen_item32.cpp index f3f397d632..138a0e47b0 100644 --- a/engines/sci/graphics/screen_item32.cpp +++ b/engines/sci/graphics/screen_item32.cpp @@ -399,7 +399,7 @@ void ScreenItem::calcRects(const Plane &plane) { } } -CelObj &ScreenItem::getCelObj() { +CelObj &ScreenItem::getCelObj() const { if (_celObj == nullptr) { switch (_celInfo.type) { case kCelTypeView: |