chiark
/
gitweb
/
~ian
/
sgt-puzzles.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix borders on the HTML menu bar.
[sgt-puzzles.git]
/
rect.c
diff --git
a/rect.c
b/rect.c
index 55667c02a8372dd05ba30992c2643e0e247168f3..465e1436fac50b2cfc8b125224011316f3b83178 100644
(file)
--- a/
rect.c
+++ b/
rect.c
@@
-1317,7
+1317,8
@@
static char *new_game_desc(const game_params *params_in, random_state *rs,
if (ndirs > 0) {
int which, dir;
struct rect r1, r2;
if (ndirs > 0) {
int which, dir;
struct rect r1, r2;
-
+ memset(&r1, 0, sizeof(struct rect));
+ memset(&r2, 0, sizeof(struct rect));
which = random_upto(rs, ndirs);
dir = dirs[which];
which = random_upto(rs, ndirs);
dir = dirs[which];
@@
-2959,9
+2960,9
@@
static void game_print(drawing *dr, const game_state *state, int tilesize)
#endif
const struct game thegame = {
#endif
const struct game thegame = {
- "Rectangles", "games.rectangles", "rect
angles
",
+ "Rectangles", "games.rectangles", "rect",
default_params,
default_params,
- game_fetch_preset,
+ game_fetch_preset,
NULL,
decode_params,
encode_params,
free_params,
decode_params,
encode_params,
free_params,