From a2e9cc4965340add73db19c3d602ef5a910fe336 Mon Sep 17 00:00:00 2001 From: Colin Snover Date: Tue, 8 Mar 2016 10:27:15 -0600 Subject: 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. --- engines/sci/graphics/screen_item32.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'engines/sci/graphics/screen_item32.cpp') 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: -- cgit v1.2.3