Bug 381086 - Undo allows to cheat (removal of blocked tiles)
Summary: Undo allows to cheat (removal of blocked tiles)
Status: RESOLVED FIXED
Alias: None
Product: kmahjongg
Classification: Applications
Component: general (show other bugs)
Version: 0.9
Platform: Neon Linux
: NOR normal
Target Milestone: ---
Assignee: Unassigned bugs mailing-list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-06-11 03:35 UTC by Peter Ped Helcmanovsky
Modified: 2017-07-24 15:23 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
Screenshot of result after using the undo-cheat. (96.88 KB, image/png)
2017-06-11 03:35 UTC, Peter Ped Helcmanovsky
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Peter Ped Helcmanovsky 2017-06-11 03:35:47 UTC
Created attachment 106044 [details]
Screenshot of result after using the undo-cheat.

What I did:

1) Find some target pair which has one tile blocked (and blocked tiles are easy to remove), and other free to select.

2) Play regularly to unblock the target pair (remove other tiles, which are blocking it).

3) Select only the one tile of target pair, which was blocked previously in step 1.

4) hit Undo as many times, as you need, to get back into the state 1). Now the blocked tile is drawn as unselected, but the selection is still active.

5) select the other free tile of target pair => the blocked pair is removed from the game (invalid move).

I'm attaching screenshot of result, I was able to remove two tiles in the middle (while using Undo to restore all other removals).
Comment 1 Albert Astals Cid 2017-07-24 15:23:38 UTC
Git commit 27a86e4112524fd248fd7bda033f2b519e7f45ee by Albert Astals Cid.
Committed on 24/07/2017 at 15:22.
Pushed by aacid into branch 'Applications/17.08'.

Fix undo tile selection

M  +1    -1    src/gameview.cpp

https://commits.kde.org/kmahjongg/27a86e4112524fd248fd7bda033f2b519e7f45ee