diff options
| author | Simon Tatham <anakin@pobox.com> | 2008-04-10 11:11:33 +0000 |
|---|---|---|
| committer | Simon Tatham <anakin@pobox.com> | 2008-04-10 11:11:33 +0000 |
| commit | 4bd99ecae9d1d02f85ed63c9cfd7ef21dfb7d29a (patch) | |
| tree | 7863e56d1c5686b5637b237abe671be6a8c0dc3d /fifteen.c | |
| parent | 19172c4a30a15e69ad2e8aa74524d0c512e321c1 (diff) | |
| download | puzzles-4bd99ecae9d1d02f85ed63c9cfd7ef21dfb7d29a.zip puzzles-4bd99ecae9d1d02f85ed63c9cfd7ef21dfb7d29a.tar.gz puzzles-4bd99ecae9d1d02f85ed63c9cfd7ef21dfb7d29a.tar.bz2 puzzles-4bd99ecae9d1d02f85ed63c9cfd7ef21dfb7d29a.tar.xz | |
Now that we're highlighting the currently selected preset in the
Type menu, it looks faintly silly that Fifteen doesn't have any
presets other than Custom: you open a Fifteen window in its default
state, and the Type menu appears to be telling you it has a custom
size! Fixed by adding a preset for the default parameters.
I'd quite like to fix this properly by revamping the presets
mechanism in a way that _enforces_ that there must always be a
preset which matches the default parameters, but that's more fiddly
than it sounds. For the moment, this change fixes the only
externally visible infelicity in the current game set.
[originally from svn r7983]
Diffstat (limited to 'fifteen.c')
| -rw-r--r-- | fifteen.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -57,6 +57,11 @@ static game_params *default_params(void) static int game_fetch_preset(int i, char **name, game_params **params) { + if (i == 0) { + *params = default_params(); + *name = dupstr("4x4"); + return TRUE; + } return FALSE; } |