Skip to content

Commit

Permalink
SLUDGE: fix error that chracter has no click effect
Browse files Browse the repository at this point in the history
  • Loading branch information
yinsimei authored and sev- committed Jul 13, 2017
1 parent 82f023d commit 83926d0
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions engines/sludge/sprites.cpp
Expand Up @@ -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;

Expand Down

0 comments on commit 83926d0

Please sign in to comment.