Bite the bullet - size siymbols have to be shared.

Otherwise we end up duplicating magic sizes and tey can drift apart.
This commit is contained in:
Eric S. Raymond 2017-06-07 05:45:51 -04:00
parent 7f4cff1188
commit 461575ef4c
5 changed files with 24 additions and 12 deletions

View file

@ -1,6 +1,8 @@
#include <stdio.h>
#include <stdbool.h>
#include "sizes.h"
#define LINESIZE 100
#define NDWARVES 6
#define PIRATE NDWARVES /* must be NDWARVES-1 when zero-origin */
@ -51,7 +53,7 @@ struct game_t {
long turns;
long wzdark;
long zzword;
long abbrev[185+1]; /* FIXME: LOCSIZE in the compiler */
long abbrev[LOCSIZ+1];
long dseen[NDWARVES+1];
long dloc[NDWARVES+1];
long odloc[NDWARVES+1];