From 0a4c338ee8bc1a4254688906826ec67bb237498e Mon Sep 17 00:00:00 2001 From: Dave Neary Date: Wed, 20 Nov 2002 14:39:17 +0000 Subject: [PATCH] plug-ins/maze/maze.[ch] plug-ins/maze/algorithms.c Changed occurreces of 2002-11-20 Dave Neary * plug-ins/maze/maze.[ch] * plug-ins/maze/algorithms.c * plug-ins/maze/maze_face.c: Changed occurreces of timeseed to defaultseed to more accurately reflect what happens with the g_rand* functions. Sorry for missing one earlier & temporarily breaking the build :~} --- ChangeLog | 9 +++++++++ plug-ins/maze/algorithms.c | 2 +- plug-ins/maze/maze.c | 2 +- plug-ins/maze/maze.h | 2 +- plug-ins/maze/maze_face.c | 2 +- 5 files changed, 13 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index 74dde298c2..2859cc5931 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,12 @@ +2002-11-20 Dave Neary + + * plug-ins/maze/maze.[ch] + * plug-ins/maze/algorithms.c + * plug-ins/maze/maze_face.c: Changed occurreces of + timeseed to defaultseed to more accurately reflect what + happens with the g_rand* functions. Sorry for missing one + earlier & temporarily breaking the build :~} + 2002-11-20 Sven Neumann * plug-ins/maze/maze.[ch] diff --git a/plug-ins/maze/algorithms.c b/plug-ins/maze/algorithms.c index 1af5cac34d..3609c2d177 100644 --- a/plug-ins/maze/algorithms.c +++ b/plug-ins/maze/algorithms.c @@ -463,7 +463,7 @@ prim_tileable(gchar *maz, guint x, guint y) max_progress=x*y/4; /* Pick someplace to start. */ - if (!mvals.timeseed) + if (!mvals.defaultseed) g_rand_set_seed (gr, rnd); pos = x * 2 * g_rand_int_range (gr, 0, y/2) + 2 * g_rand_int_range(gr, 0, x/2); diff --git a/plug-ins/maze/maze.c b/plug-ins/maze/maze.c index ffb4b6c5d7..fd0638d705 100644 --- a/plug-ins/maze/maze.c +++ b/plug-ins/maze/maze.c @@ -246,7 +246,7 @@ run (gchar *name, gimp_displays_flush (); if (run_mode == GIMP_RUN_INTERACTIVE || - (mvals.timeseed && run_mode == GIMP_RUN_WITH_LAST_VALS)) + (mvals.defaultseed && run_mode == GIMP_RUN_WITH_LAST_VALS)) gimp_set_data ("plug_in_maze", &mvals, sizeof (MazeValues)); } else diff --git a/plug-ins/maze/maze.h b/plug-ins/maze/maze.h index d0694461f7..693911567e 100644 --- a/plug-ins/maze/maze.h +++ b/plug-ins/maze/maze.h @@ -33,7 +33,7 @@ typedef struct { gint offset; MazeAlgoType algorithm; /* Interface options. */ - gboolean timeseed; + gboolean defaultseed; } MazeValues; enum CellTypes { diff --git a/plug-ins/maze/maze_face.c b/plug-ins/maze/maze_face.c index 0bbd675f18..cd4b4f9f57 100644 --- a/plug-ins/maze/maze_face.c +++ b/plug-ins/maze/maze_face.c @@ -293,7 +293,7 @@ maze_dialog (void) /* Seed input box */ seed_hbox = gimp_random_seed_new (&mvals.seed, - &mvals.timeseed, + &mvals.defaultseed, TRUE, FALSE); gimp_table_attach_aligned (GTK_TABLE (table), 0, trow, _("Seed:"), 1.0, 0.5,