Bug 319347 - pressing 'new game' while cascade is occurring causes unfair game start
Summary: pressing 'new game' while cascade is occurring causes unfair game start
Status: RESOLVED FIXED
Alias: None
Product: kjumpingcube
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Gentoo Packages Linux
: NOR minor
Target Milestone: ---
Assignee: Ian Wadham
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-05-05 03:30 UTC by andrew
Modified: 2013-05-13 04:45 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In: 2.0 (KDE SC 4.10.4)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.