aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorFilippos Karapetis2014-10-13 12:21:02 +0300
committerFilippos Karapetis2014-10-13 12:21:40 +0300
commitade33c4c0bfc2c92475af3b9fa202ab06dc58a01 (patch)
tree6f47a4694597955ec330fa00803d4c10666ffdfc /engines
parentae2be20a20b4a88dee2aec8b47e01f899df38ff4 (diff)
downloadscummvm-rg350-ade33c4c0bfc2c92475af3b9fa202ab06dc58a01.tar.gz
scummvm-rg350-ade33c4c0bfc2c92475af3b9fa202ab06dc58a01.tar.bz2
scummvm-rg350-ade33c4c0bfc2c92475af3b9fa202ab06dc58a01.zip
SCI: Set the NS rect for all cases in GK1 (bug #6729)
Diffstat (limited to 'engines')
-rw-r--r--engines/sci/graphics/frameout.cpp9
1 files changed, 3 insertions, 6 deletions
diff --git a/engines/sci/graphics/frameout.cpp b/engines/sci/graphics/frameout.cpp
index 91b5b25e99..a015362e69 100644
--- a/engines/sci/graphics/frameout.cpp
+++ b/engines/sci/graphics/frameout.cpp
@@ -784,13 +784,10 @@ void GfxFrameout::kernelFrameout() {
// swapped in the GK1 inventory screen, investigate why.
// This is also needed for GK1 rooms 710 and 720 (catacombs, inner and
// outer circle), for handling the tiles and talking to Wolfgang.
- // HACK: Fix the coordinates by explicitly setting them here.
- Common::Rect objNSRect = g_sci->_gfxCompare->getNSRect(itemEntry->object);
- uint16 roomNumber = g_sci->getEngineState()->currentRoomNumber();
- if (objNSRect.top == nsRect.left && objNSRect.left == nsRect.top && nsRect.top != 0 && nsRect.left != 0 ||
- (g_sci->getGameId() == GID_GK1 && (roomNumber == 710 || roomNumber == 720))) {
+ // HACK: Fix the coordinates by explicitly setting them here for GK1.
+ // Also check bug #6729, for another case where this needed.
+ if (g_sci->getGameId() == GID_GK1)
g_sci->_gfxCompare->setNSRect(itemEntry->object, nsRect);
- }
}
// Don't attempt to draw sprites that are outside the visible