diff options
author | Bruno Coudoin <bcoudoin@src.gnome.org> | 2008-04-20 12:04:59 (GMT) |
---|---|---|
committer | Bruno Coudoin <bcoudoin@src.gnome.org> | 2008-04-20 12:04:59 (GMT) |
commit | ecdafb6342026e0b63a752e0c2b4ef34a256ae23 (patch) | |
tree | aa225f815a0ba4334752ae6ff5f1342814bb586e /src/boards | |
parent | 92d8a837f1ce6af702b80980475270e4466f7669 (diff) |
fixed random offset bug in which it was possible to have the ball placed
* src/billard-activity/billard.c: (minigolf_create_item): fixed random
offset bug in which it was possible to have the ball placed on the
top line which was triggering the border touch sounds endlessly.
removed unused flags.
svn path=/trunk/; revision=3382
Diffstat (limited to 'src/boards')
-rw-r--r-- | src/boards/machpuzzle.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/boards/machpuzzle.c b/src/boards/machpuzzle.c index 0140e0c..b30d9b2 100644 --- a/src/boards/machpuzzle.c +++ b/src/boards/machpuzzle.c @@ -243,7 +243,8 @@ static GnomeCanvasItem *minigolf_create_item(GnomeCanvasGroup *parent) NULL)); create_machine_item(MACH_HOLE, 730.0, 260.0); - create_machine_item(MACH_BASKET_BALL, (double)g_random_int_range(60, 150), (double)RAND(60, 400)); + create_machine_item(MACH_BASKET_BALL, (double)g_random_int_range(60, 150), + (double)RAND(70, 400)); return NULL; |