Jason S. Ninneman
e281f895d4
Factor out handling of variables populated from the database.
...
This reorganization is a first step toward handling database compilation separately.
2017-06-13 20:43:41 +03:00
Jason S. Ninneman
0064a4257e
Just say no to encrypting internal state.
2017-06-13 20:43:41 +03:00
Eric S. Raymond
aa7e291bc6
Revert structurization changes, they broke database compilation...
...
...bug showing only if adventure.data was absent. We'll need to sneak up
on this more carefully.
2017-06-13 20:43:40 +03:00
Eric S. Raymond
3f57114791
Revert a variable name previously changed to be out of the way.
...
Also, make output from replays easier to interpret by adding prompts.
2017-06-13 20:43:40 +03:00
Eric S. Raymond
ba7561a27a
More structurization.
2017-06-13 20:43:40 +03:00
Eric S. Raymond
4f0e04404e
More global-to-structure moves.
2017-06-13 20:43:40 +03:00
Eric S. Raymond
cb477da7ec
Move more globals into the state structure.
2017-06-13 20:43:40 +03:00
Eric S. Raymond
91bfd55c1c
Begin gathering saveable game state into a structure. Not yet complete.
...
No logic changes. A bunch of globals turn into fields (with the same names
except for lowercasing) in struct game_t.
Eventually this will allow drastic simplification of the save/load logic.
2017-06-13 20:43:40 +03:00
Eric S. Raymond
0ad8d13f27
Added oldstyle option.
2017-06-13 20:43:40 +03:00
Eric S. Raymond
c16e4cb078
Fix capitalization glitches.
2017-06-13 20:43:40 +03:00
Eric S. Raymond
42e6e7cdb7
Fix strange inside-out organization of the input routines.
...
Seems to have nbben a result of FORTRAN not having anything like a
stream object that can be passed around.
A step towards logging and log replay.
2017-06-13 20:43:39 +03:00
Eric S. Raymond
a7f6f62a1a
Correct long-size bug that resulted in checksum error.
...
Idea thanks tp Max Ninneman.
2017-06-13 20:43:39 +03:00
Eric S. Raymond
301f38586b
Fix up case on all comments to make them more readable. No code changes.
...
The all-capsing was a FORTRAN remnant.Also, we change a few FORTRANisms
so they are less confusing in this C context; ".TRUE." and ".FALSE." become
"true" and "false", "MOD" is mapped to % in places tha t are like C expressions
and (usually) "modulo" in places that aren't.
2017-06-13 20:43:39 +03:00
Eric S. Raymond
936a4a27b5
More boolification.
...
Constants and formals have been converted, but not globals yet.
2017-06-13 20:43:39 +03:00
Eric S. Raymond
6ef3e68c0c
Replace fDATIME with ANSI/POSIX clock_gettime(). Rip out DOS/AMIGA shims.
...
The thinking here is that we simplify life by going pure ANSI/POSIX.
This is a text game. If it ever runs on anything but Unix again it's
almost certain to be on something like WSL that supplies a
POSIX-conformant text console.
2017-06-13 20:43:39 +03:00
Eric S. Raymond
51f7b01c15
Use prototypes and bools.
2017-06-13 20:43:39 +03:00
Eric S. Raymond
3a9c44f910
Minimal forward-port to modern C - just enough to get it to compile.
2017-06-13 20:43:39 +03:00
Eric S. Raymond
f16343f8dc
Don Wood's 430-point Adventure 2.5 from 1995, from rec.games.int-fiction.
2017-06-13 20:43:39 +03:00