gnome-games r8618 - trunk/lightsoff
- From: hortont svn gnome org
- To: svn-commits-list gnome org
- Subject: gnome-games r8618 - trunk/lightsoff
- Date: Sun, 25 Jan 2009 10:01:09 +0000 (UTC)
Author: hortont
Date: Sun Jan 25 10:01:08 2009
New Revision: 8618
URL: http://svn.gnome.org/viewvc/gnome-games?rev=8618&view=rev
Log:
Fix Lights Off; don't infinite-loop if you somehow get to level 0.
Modified:
trunk/lightsoff/board.js.in
Modified: trunk/lightsoff/board.js.in
==============================================================================
--- trunk/lightsoff/board.js.in (original)
+++ trunk/lightsoff/board.js.in Sun Jan 25 10:01:08 2009
@@ -168,6 +168,9 @@
{
in_setup = true;
+ if(score.get_value() == 0)
+ score.set_value(1);
+
GLib.random_set_seed(score.get_value());
do
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]