Bug 357123

Summary: Allows cheating if I press arrow_key at the right moment
Product: [Applications] gcompris Reporter: Imran Tatriev <itatriev>
Component: generalAssignee: Bruno Coudoin <bruno.coudoin>
Status: RESOLVED FIXED    
Severity: normal CC: jazeix
Priority: NOR    
Version: git master   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Imran Tatriev 2015-12-24 15:01:27 UTC
It's, undoubtedly, a bug. If we press "Arrow_key" at the finish multiple times it allows us to "jump" through a few levels above.

Reproducible: Always

Steps to Reproduce:
1. Start "Maze" activity.
2. Go through one maze.
3. At the moment of coming though the door to finish the lvl - press "arrow_key" multiple times.
4. Done! You're not on the "currentLvl + 1", but on the "currentLvl + 3(or 4)"

Actual Results:  
I've mentioned above.

Expected Results:  
Instead, it should bring you to the "currentLvl + 1" regardless of whether any buttons(arrow_key) were pressed or not.

Tested on Android as well. Bug exists on all platforms and all OSes, therefore it's not platform related, but code.
Comment 1 Imran Tatriev 2016-01-05 19:52:26 UTC
Git commit d8b7e50f745313170e7c86a06b9eb5eab610e71e by Imran Tatriev.
Committed on 05/01/2016 at 19:51.
Pushed by itatriev into branch 'master'.

Fix bug with cheating in Maze Activitity
REVIEW: 126633

M  +25   -18   src/activities/maze/maze.js

http://commits.kde.org/gcompris/d8b7e50f745313170e7c86a06b9eb5eab610e71e
Comment 2 Bruno Coudoin 2016-01-17 15:20:24 UTC
Git commit 7e1c760c3607cb7e2d6b8249390b76dfa98a7d93 by Bruno Coudoin, on behalf of Imran Tatriev.
Committed on 17/01/2016 at 13:04.
Pushed by bcoudoin into branch 'KDE/0.50'.

Fix bug with cheating in Maze Activitity
REVIEW: 126633

M  +25   -18   src/activities/maze/maze.js

http://commits.kde.org/gcompris/7e1c760c3607cb7e2d6b8249390b76dfa98a7d93