projects
/
open-adventure.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Switch to 0-indexing for hint handling code.
[open-adventure.git]
/
advent.h
diff --git
a/advent.h
b/advent.h
index 4a6679ef2a1a4f804d0c6dd2b709e35bfda51de3..a4714614c6df892448d863ec5406b65d26e383ed 100644
(file)
--- a/
advent.h
+++ b/
advent.h
@@
-3,6
+3,7
@@
#include <stdbool.h>
#include "common.h"
#include <stdbool.h>
#include "common.h"
+#include "newdb.h"
#define LINESIZE 100
#define NDWARVES 6 /* number of dwarves */
#define LINESIZE 100
#define NDWARVES 6 /* number of dwarves */
@@
-70,8
+71,8
@@
struct game_t {
long fixed[NOBJECTS + 1];
long link[NOBJECTS * 2 + 1];
long place[NOBJECTS + 1];
long fixed[NOBJECTS + 1];
long link[NOBJECTS * 2 + 1];
long place[NOBJECTS + 1];
- long hinted[H
NTSIZ + 1
];
- long hintlc[H
NTSIZ + 1
];
+ long hinted[H
INT_COUNT
];
+ long hintlc[H
INT_COUNT
];
long prop[NOBJECTS + 1];
};
long prop[NOBJECTS + 1];
};