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];
#endif
const struct game thegame = {
- "Rectangles", "games.rectangles", "rectangles",
+ "Rectangles", "games.rectangles", "rect",
default_params,
- game_fetch_preset,
+ game_fetch_preset, NULL,
decode_params,
encode_params,
free_params,