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 329698 - High scores are broke
High scores are broke
Status: RESOLVED FIXED
Product: gnome-games-superseded
Classification: Deprecated
Component: mahjongg
2.13.x
Other All
: Normal normal
: ---
Assigned To: GNOME Games maintainers
GNOME Games maintainers
Depends on:
Blocks:
 
 
Reported: 2006-02-03 02:36 UTC by Aaron Gyes
Modified: 2006-02-12 06:34 UTC
See Also:
GNOME target: ---
GNOME version: 2.13/2.14



Description Aaron Gyes 2006-02-03 02:36:08 UTC
Please describe the problem:
When you beat the game it always reports your time as 0 seconds.

Steps to reproduce:



Actual results:


Expected results:


Does this happen every time?


Other information:
Comment 1 Callum McKenzie 2006-02-03 09:46:20 UTC
I can confirm this happens. I will be investigating later. Once I've had some sleep.
Comment 2 Callum McKenzie 2006-02-05 08:43:22 UTC
I have a fix for the bug, but the fix has brought to light another bug which is now causing a crash shortly afterward, so it hasn't been uploaded to CVS yet.

The following patch fixes the problem:

-        score.plain = (seconds / 60) * 1.0 + (seconds % 60) / 100.0;
+        score.time_double = (seconds / 60) * 1.0 + (seconds % 60) / 100.0;
Comment 3 Callum McKenzie 2006-02-12 06:34:06 UTC
The fix is now in CVS. 2.13.7 will be released tomorrow with this fix. Thanks for the bug report.