X-Git-Url: https://jxself.org/git/?a=blobdiff_plain;f=main.h;h=2b3373539d0dfbb22f05d259ff6275a71f33e979;hb=6b6cfa37f11ebd53c4e293aa895ebb60fbb3515e;hp=dfc27bd2cec358e6497ec0eecbccd22b348589bd;hpb=42189d79d7b33d5543688d77fa5e7b209452b8d1;p=open-adventure.git diff --git a/main.h b/main.h index dfc27bd..2b33735 100644 --- a/main.h +++ b/main.h @@ -2,38 +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 signed 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; - long numdie; - /* more state will go here */ - long wzdark; -}; -extern struct game_t game; +extern lcg_state lcgstate;