aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorArnaud Boutonné2009-09-09 21:47:26 +0000
committerArnaud Boutonné2009-09-09 21:47:26 +0000
commit686739fc5bc56dd07ee30621ff474f4efc2fd2c7 (patch)
treedcacf515013fcd0112b413101a19726ce9db82ba /engines
parent153eba4fcf4ab2c5a146d077a8ab6690c5c14315 (diff)
downloadscummvm-rg350-686739fc5bc56dd07ee30621ff474f4efc2fd2c7.tar.gz
scummvm-rg350-686739fc5bc56dd07ee30621ff474f4efc2fd2c7.tar.bz2
scummvm-rg350-686739fc5bc56dd07ee30621ff474f4efc2fd2c7.zip
Playtoons - Fix searchHotspot and suppress a forgotten debug warning
svn-id: r44020
Diffstat (limited to 'engines')
-rw-r--r--engines/gob/hotspots.cpp2
-rw-r--r--engines/gob/inter_playtoons.cpp3
2 files changed, 1 insertions, 4 deletions
diff --git a/engines/gob/hotspots.cpp b/engines/gob/hotspots.cpp
index 36e8244d3f..5c3291ea32 100644
--- a/engines/gob/hotspots.cpp
+++ b/engines/gob/hotspots.cpp
@@ -1567,7 +1567,7 @@ int16 Hotspots::findCursor(uint16 x, uint16 y) const {
bool Hotspots::searchHotspot(int16 shortId) const {
for (int i = 0; i < kHotspotCount; i++) {
- if (_hotspots[i].isDisabled())
+ if (_hotspots[i].left == -1)
return false;
if ((_hotspots[i].id == 0xD000 + shortId) || (_hotspots[i].id == 0xB000 + shortId) || (_hotspots[i].id == 0x4000 + shortId))
return true;
diff --git a/engines/gob/inter_playtoons.cpp b/engines/gob/inter_playtoons.cpp
index 6e2a77df35..156ba285fb 100644
--- a/engines/gob/inter_playtoons.cpp
+++ b/engines/gob/inter_playtoons.cpp
@@ -169,9 +169,6 @@ bool Inter_Playtoons::oPlaytoons_printText(OpFuncParams &params) {
_vm->_draw->spriteOperation(DRAW_FILLRECT);
_vm->_draw->_transparency = 1;
}
-
- warning("print %s", _vm->_draw->_textToPrint);
-
_vm->_draw->spriteOperation(DRAW_PRINTTEXT);
_vm->_draw->_transparency = oldTransparency;
i = 0;