chiark / gitweb /
Take out some lurking "nullgame" holdovers from unfinished puzzle
[sgt-puzzles.git] / unfinished / slide.c
index af8f21055005e4821f306544e8e4d1b55bcba7db..d32473cfe41fcec5fcd219128da4d08492c23b8d 100644 (file)
@@ -1597,7 +1597,8 @@ static void game_compute_size(game_params *params, int tilesize,
                              int *x, int *y)
 {
     /* fool the macros */
-    struct dummy { int tilesize; } dummy = { tilesize }, *ds = &dummy;
+    struct dummy { int tilesize; } dummy, *ds = &dummy;
+    dummy.tilesize = tilesize;
 
     *x = params->w * TILESIZE + 2*BORDER;
     *y = params->h * TILESIZE + 2*BORDER;
@@ -2303,7 +2304,7 @@ static void game_print(drawing *dr, game_state *state, int tilesize)
 }
 
 #ifdef COMBINED
-#define thegame nullgame
+#define thegame slide
 #endif
 
 const struct game thegame = {