projects
/
open-adventure.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix bug that led to comments bnot being ignored.
[open-adventure.git]
/
main.h
diff --git
a/main.h
b/main.h
index c7b40b565189d83cea66a48b39879e34d718cd6f..184aceea0a17be1a0e727614318946042001e02a 100644
(file)
--- a/
main.h
+++ b/
main.h
@@
-2,53
+2,15
@@
#define LINESIZE 100
#define LINESIZE 100
-extern long ABB[], ATAB[], ATLOC[], DLOC[], FIXED[],
+typedef struct lcg_state
+{
+ unsigned long a, c, m, x;
+} lcg_state;
+
+extern long ABB[], ATAB[], ATLOC[], BLKLIN, DFLAG, DLOC[], FIXED[], HOLDNG,
KTAB[], *LINES, LINK[], LNLENG, LNPOSN,
PARMS[], PLACE[], PTEXT[], RTEXT[], TABSIZ;
KTAB[], *LINES, LINK[], LNLENG, LNPOSN,
PARMS[], PLACE[], PTEXT[], RTEXT[], TABSIZ;
-extern signed char INLINE[LINESIZE+1], MAP1[], MAP2[];
+extern signed char
rawbuf[LINESIZE],
INLINE[LINESIZE+1], MAP1[], MAP2[];
extern FILE *logfp;
extern bool oldstyle;
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;
- long setup;
- long spk;
- long tally;
- long thresh;
- long trndex;
- long trnluz;
- long turns;
- /* more state will go here */
- long wzdark;
- /* more state will go here */
- long novice;
-};
-extern struct game_t game;
+extern lcg_state lcgstate;