diff options
author | yinsimei | 2017-06-18 07:47:56 +0200 |
---|---|---|
committer | Eugene Sandulenko | 2017-07-13 18:27:45 +0200 |
commit | 83926d07a379713c3719cc5745d2eab16ffcf3c5 (patch) | |
tree | 56adaa6444f0261798b9846a6750d59ec1d14d62 /engines/sludge | |
parent | 82f023d9bd87ee39de5f93f6ac63afbcd74f8915 (diff) | |
download | scummvm-rg350-83926d07a379713c3719cc5745d2eab16ffcf3c5.tar.gz scummvm-rg350-83926d07a379713c3719cc5745d2eab16ffcf3c5.tar.bz2 scummvm-rg350-83926d07a379713c3719cc5745d2eab16ffcf3c5.zip |
SLUDGE: fix error that chracter has no click effect
Diffstat (limited to 'engines/sludge')
-rw-r--r-- | engines/sludge/sprites.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/engines/sludge/sprites.cpp b/engines/sludge/sprites.cpp index 18370951ec..3662660cab 100644 --- a/engines/sludge/sprites.cpp +++ b/engines/sludge/sprites.cpp @@ -632,6 +632,13 @@ bool scaleSprite(sprite &single, const spritePalette &fontPal, onScreenPerson *t Graphics::TransparentSurface tmp(single.surface, false); tmp.blit(renderSurface, x1, y1, (mirror? Graphics::FLIP_H : Graphics::FLIP_NONE), nullptr, TS_ARGB(255, 255, 255, 255), diffX, diffY); + // Are we pointing at the sprite? + if (input.mouseX >= x1 && input.mouseX <= x2 && input.mouseY >= y1 && input.mouseY <= y2) { + if (thisPerson->extra & EXTRA_RECTANGULAR) return true; + return true; + } + return false; + #if 0 GLfloat z; |