X-Git-Url: https://jxself.org/git/?a=blobdiff_plain;f=main.h;h=259170a54ba5a327bdd929e10396ce2159784f3b;hb=f373d87ba7ca7b2011fe26ea81544daebfdf66fb;hp=0e4feb091ced7d4f4981abbb9f23f24756886a0a;hpb=fa1f8591629eccdaf53da24c29fdf02acb84255f;p=open-adventure.git diff --git a/main.h b/main.h index 0e4feb0..259170a 100644 --- a/main.h +++ b/main.h @@ -2,46 +2,15 @@ #define LINESIZE 100 -extern long ABB[], ATAB[], ATLOC[], DLOC[], FIXED[], - KTAB[], *LINES, LINK[], LNLENG, LNPOSN, - PARMS[], PLACE[], PTEXT[], RTEXT[], TABSIZ; -extern signed char INLINE[LINESIZE+1], MAP1[], MAP2[]; +typedef struct lcg_state +{ + unsigned long a, c, m, x; +} lcg_state; + +extern long ABB[], ATLOC[], BLKLIN, DFLAG, DLOC[], FIXED[], HOLDNG, + LINK[], LNLENG, LNPOSN, + PARMS[], PLACE[]; +extern char rawbuf[LINESIZE], INLINE[LINESIZE+1], MAP1[], MAP2[]; extern FILE *logfp; extern bool oldstyle; - -struct game_t { - /* These members are in the save order of the individual variables - * in the 2.5 code. */ - long abbnum; - long blklin; - long bonus; - long clock1; - long clock2; - long closed; - long closng; - long detail; - long dflag; - long dkill; - long dtotal; - long foobar; - long holdng; - long iwest; - long knfloc; - long limit; - /* LL may go here */ - long lmwarn; - /* LOC will go here */ - long newloc; - /* OBJ will go here */ - long numdie; - long oldlc2; - long oldloc; - long oldobj; - long panic; - long saved; - /* more state will go here */ - long wzdark; - /* more state will go here */ - long novice; -}; -extern struct game_t game; +extern lcg_state lcgstate;