summaryrefslogtreecommitdiff
path: root/apps/plugins/puzzles/src/loopgen.h
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/puzzles/src/loopgen.h')
-rw-r--r--apps/plugins/puzzles/src/loopgen.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/plugins/puzzles/src/loopgen.h b/apps/plugins/puzzles/src/loopgen.h
index 079c87c576..bab95814d2 100644
--- a/apps/plugins/puzzles/src/loopgen.h
+++ b/apps/plugins/puzzles/src/loopgen.h
@@ -2,8 +2,8 @@
2 * loopgen.h: interface file for loop generation functions for grid.[ch]. 2 * loopgen.h: interface file for loop generation functions for grid.[ch].
3 */ 3 */
4 4
5#ifndef _LOOPGEN_H 5#ifndef PUZZLES_LOOPGEN_H
6#define _LOOPGEN_H 6#define PUZZLES_LOOPGEN_H
7 7
8#include "puzzles.h" 8#include "puzzles.h"
9#include "grid.h" 9#include "grid.h"
@@ -13,7 +13,7 @@ enum face_colour { FACE_WHITE, FACE_GREY, FACE_BLACK };
13/* face should be of type grid_face* here. */ 13/* face should be of type grid_face* here. */
14#define FACE_COLOUR(face) \ 14#define FACE_COLOUR(face) \
15 ( (face) == NULL ? FACE_BLACK : \ 15 ( (face) == NULL ? FACE_BLACK : \
16 board[(face) - g->faces] ) 16 board[(face)->index] )
17 17
18typedef int (*loopgen_bias_fn_t)(void *ctx, char *board, int face); 18typedef int (*loopgen_bias_fn_t)(void *ctx, char *board, int face);
19 19