From: Holger Schemel Date: Mon, 30 Oct 2017 15:27:03 +0000 (+0100) Subject: fixed bug with handling mouse events after clicking clickable animations X-Git-Tag: 4.0.1.1~31 X-Git-Url: https://git.artsoft.org/?p=rocksndiamonds.git;a=commitdiff_plain;h=bbb1e1a4759841b63e3651b93cb7b28724146d56 fixed bug with handling mouse events after clicking clickable animations --- diff --git a/src/events.c b/src/events.c index d56edaf9..e575a981 100644 --- a/src/events.c +++ b/src/events.c @@ -1275,7 +1275,7 @@ void HandleButton(int mx, int my, int button, int button_nr) if (HandleGlobalAnimClicks(mx, my, button)) { /* do not handle this button event anymore */ - mx = my = -32; /* force mouse event to be outside screen tiles */ + return; /* force mouse event not to be handled at all */ } if (button_hold && game_status == GAME_MODE_PLAYING && tape.pausing)