From 21d886f3ff24a8a1d26df7ec7bf76a0381850557 Mon Sep 17 00:00:00 2001 From: dholland Date: Sun, 24 Feb 2008 02:43:18 +0000 Subject: Abolish the initdeck program and the weird little binary file it generates. The card deck data is now compiled in. (And it always should have been, even back when memory usage counted. It's small.) This changes the save format slightly. (I am riding the previous breakage an hour ago and not providing compat. There should be no further breakage.) --- monop/deck.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'monop/deck.h') diff --git a/monop/deck.h b/monop/deck.h index 7275d1cc..7e3f1915 100644 --- a/monop/deck.h +++ b/monop/deck.h @@ -1,4 +1,4 @@ -/* $NetBSD: deck.h,v 1.8 2008/02/24 01:57:34 dholland Exp $ */ +/* $NetBSD: deck.h,v 1.9 2008/02/24 02:43:18 dholland Exp $ */ /* * Copyright (c) 1980, 1993 @@ -35,6 +35,8 @@ #define bool char +struct cardinfo; /* private to cards.c */ + #define CC_D deck[0] #define CH_D deck[1] @@ -42,7 +44,8 @@ struct dk_st { /* deck description structure */ int num_cards; /* number of cards in deck */ int top_card; /* number of last card picked */ bool gojf_used; /* set if gojf card out of deck */ - off_t *offsets; /* offsets for start of cards */ + int *cards; /* which cards (indexes info[]) */ + const struct cardinfo *info; /* the static card data */ }; typedef struct dk_st DECK; -- cgit v1.2.3