Bug 319347

Summary: pressing 'new game' while cascade is occurring causes unfair game start
Product: [Applications] kjumpingcube Reporter: andrew <andrew.s.wallace>
Component: generalAssignee: Ian Wadham <iandw.au>
Status: RESOLVED FIXED    
Severity: minor CC: kde-games-bugs
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Gentoo Packages   
OS: Linux   
Latest Commit: Version Fixed In: 2.0 (KDE SC 4.10.4)
Sentry Crash Report:

Description andrew 2013-05-05 03:30:36 UTC
While the cubes are cascading press the new button. A new field will be set up and the 'explosion' from the last pending cascade occurs for the human player giving them up to 4 squares at the start of the game.

Reproducible: Always

Steps to Reproduce:
1. play until there is a cascade
2. press the new game button
3.
Actual Results:  
a new field with a few squares owned by the player

Expected Results:  
a new field completely blank of player territories
Comment 1 Ian Wadham 2013-05-05 08:14:36 UTC
Please let me know what versions of KJumpingCube and KDE you have (use Help->About).

I can reproduce this on KJumpingCube 2.0 and KDE 4.10.1.  I don't think the player gains any squares: I think they are just colored wrongly because the animation keeps going after you hit "New".  But it is still a bug.  Nicely spotted!
Comment 2 Ian Wadham 2013-05-13 04:34:39 UTC
Git commit 805d0a7906b934204fddde875885de06486d9a74 by Ian Wadham.
Committed on 13/05/2013 at 06:31.
Pushed by ianw into branch 'master'.

M  +6    -3    kcubeboxwidget.cpp

http://commits.kde.org/kjumpingcube/805d0a7906b934204fddde875885de06486d9a74
Comment 3 Ian Wadham 2013-05-13 04:38:06 UTC
Git commit b58c868d32bc5d2f210c802c4f7576dede0d5281 by Ian Wadham.
Committed on 13/05/2013 at 06:31.
Pushed by ianw into branch 'KDE/4.10'.

M  +6    -3    kcubeboxwidget.cpp

http://commits.kde.org/kjumpingcube/b58c868d32bc5d2f210c802c4f7576dede0d5281
Comment 4 Ian Wadham 2013-05-13 04:45:18 UTC
From KDE 4.10.4 onward, the animation no longer runs on when you request a New Game.