Skip to content

Commit

Permalink
PETKA: fixed onMouseMove method of ObjectStar
Browse files Browse the repository at this point in the history
  • Loading branch information
voltya committed Aug 25, 2019
1 parent da19cc6 commit 9570f96
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion engines/petka/objects/object_star.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ bool QObjectStar::isInPoint(int x, int y) {
}

void QObjectStar::onMouseMove(int x, int y) {
uint frame = findButtonIndex(x - _x, y - _y) % 7 + 1;
uint frame = (findButtonIndex(x - _x, y - _y) + 1) % 7 + 1;
FlicDecoder *flc = g_vm->resMgr()->loadFlic(_resourceId);
if (flc && flc->getCurFrame() + 1 != frame) {
g_vm->videoSystem()->addDirtyRect(Common::Point(_x, _y), *flc);
Expand Down

0 comments on commit 9570f96

Please sign in to comment.