After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 531825 - Possible to change preferences while in a game
Possible to change preferences while in a game
Status: RESOLVED OBSOLETE
Product: gnome-nibbles
Classification: Applications
Component: general
git master
Other All
: Normal normal
: ---
Assigned To: GNOME Games maintainers
GNOME Games maintainers
: 603996 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2008-05-06 20:18 UTC by Simon McNeilly
Modified: 2013-09-14 23:12 UTC
See Also:
GNOME target: ---
GNOME version: 2.21/2.22


Attachments
Patch for not allowing the user to change preferences in gnibbles during gameplay (1002 bytes, patch)
2009-10-02 23:34 UTC, Bhargav Prasanna
reviewed Details | Review

Description Simon McNeilly 2008-05-06 20:18:48 UTC
Please describe the problem:
The properties dialog is non-modal, and doesn't get its state updated if already open and a game starts.

This allows you to change the game speed mid game (resulting in a way to cheat the higher speed high scores) or as I just discovered crash the game by adding worms that weren't there initially.

Steps to reproduce:
Open the preferences dialog.
Move it aside.
Start a game.
Click back on the options dialog and change the speed.

Actual results:
It allows you to follow the steps above.
Game speed changes.

Expected results:
From looking at gnometris, I believe that the correct behavior would be to disable starting a new game while the properties is open.

Does this happen every time?
Yes.

Other information:
I may look at this in the future, but for now I won't be.
Comment 1 Bhargav Prasanna 2009-10-02 23:34:43 UTC
Created attachment 144635 [details] [review]
Patch for not allowing  the user to change preferences in gnibbles during gameplay

Written at Hackfest '09 @ IIT-Madras, India.
Comment 2 Robert Ancell 2011-12-09 02:10:53 UTC
*** Bug 603996 has been marked as a duplicate of this bug. ***
Comment 3 Michael Catanzaro 2013-08-17 21:13:16 UTC
Review of attachment 144635 [details] [review]:

Wow, shame this went unreviewed for so long.

Nowadays the preferences dialog is modal and much smarter and most of this doesn't seem to be a problem anymore.  But I wonder where your score goes if you change the speed during gameplay?  Your score probably ought to be listed with the slowest speed there was.  Or maybe you just shouldn't be able to change the speed.
Comment 4 Michael Catanzaro 2013-09-14 23:12:30 UTC
Bryan has completely disabled the preferences dialog during gameplay, so this definitely isn't an issue anymore.