Commit graph

258 commits

Author SHA1 Message Date
Eric S. Raymond
058e566e60 Whuirespace-only change. 2017-06-09 16:53:15 -04:00
Eric S. Raymond
b425de4f28 Continuing gotoicide. 2017-06-09 14:18:09 -04:00
Eric S. Raymond
c8ebabdf3b Still more gotoicides. 2017-06-09 13:49:19 -04:00
Eric S. Raymond
3c053367a5 Factor out player movement logic. 2017-06-09 13:36:39 -04:00
Eric S. Raymond
6862a92650 Another gotoicide. 2017-06-09 13:36:39 -04:00
Eric S. Raymond
d23235e902 Another gotoicide. 2017-06-09 13:36:39 -04:00
Jason S. Ninneman
bea58f2682 Render the ascii<->advent character code mappings to lookup tables. 2017-06-09 09:16:35 -07:00
Eric S. Raymond
2c33a29cf1 Replace an unstructured goto with a two-level break. 2017-06-09 12:09:47 -04:00
Eric S. Raymond
733312bdc7 Label and global-variable elimination. 2017-06-09 12:04:45 -04:00
Eric S. Raymond
64897f132e Abolish global variable I. 2017-06-09 11:53:02 -04:00
Eric S. Raymond
fd2155b2f2 Localize I. 2017-06-09 11:47:55 -04:00
Eric S. Raymond
db8dc40b84 Abolish a silly layer of macros. 2017-06-09 11:36:49 -04:00
Eric S. Raymond
b1fafc4d4d Eliminate an unused global. 2017-06-09 11:23:04 -04:00
Eric S. Raymond
0a4325ce45 Eliminate a global variable. 2017-06-09 11:19:47 -04:00
Eric S. Raymond
42b339a1b6 Abolish global variable L. 2017-06-09 11:14:04 -04:00
Eric S. Raymond
4df8fac952 Abolish global variable J. 2017-06-09 11:13:03 -04:00
Eric S. Raymond
37117f20e0 Eliminate objectionable use of global. 2017-06-09 10:17:13 -04:00
Eric S. Raymond
e7576855df One more goto gone. 2017-06-08 08:26:10 -04:00
Eric S. Raymond
ecc6caab4e Factor out the croak() function for player death. 2017-06-08 08:15:35 -04:00
Eric S. Raymond
d48001d64c Yet more gotoectomy. 2017-06-08 08:02:55 -04:00
Eric S. Raymond
c9cc36c681 De-gotoize hint machine. 2017-06-08 07:49:27 -04:00
Eric S. Raymond
fc0c48f0f2 Factor out the state machine for hints. 2017-06-08 07:19:44 -04:00
Eric S. Raymond
75c2aa57aa Resolve a particularly gnarly foto in dwarfmove. 2017-06-08 06:44:25 -04:00
Eric S. Raymond
e3f3c86d1d Refactor of dwarfmove logic. 2017-06-08 06:25:52 -04:00
Eric S. Raymond
af453777d4 More gotoectomies. 2017-06-08 06:15:08 -04:00
Eric S. Raymond
897bb2cdb5 Clean up dwarfmove() 2017-06-08 05:52:32 -04:00
Eric S. Raymond
86e75219e3 Gotoectomy. 2017-06-08 05:21:20 -04:00
Eric S. Raymond
a8e8967814 More main.c cleanup. 2017-06-08 05:11:52 -04:00
Eric S. Raymond
30ac7894e7 De-gotoifying main.c 2017-06-08 05:01:51 -04:00
Eric S. Raymond
8bf31a9c19 Localize V1 and V2 in main.c 2017-06-08 04:31:06 -04:00
Eric S. Raymond
46cd836df0 Abolish funcs.h. 2017-06-08 04:25:20 -04:00
Eric S. Raymond
ff36dff18f Attempt to repair GitLab build breakage. 2017-06-07 21:26:45 -04:00
Eric S. Raymond
ed80d6dd2f Move MAXDIE computation to dungeonmaker. 2017-06-07 15:33:22 -04:00
Eric S. Raymond
7555eb7de3 Global-variable elimination. 2017-06-07 14:45:30 -04:00
Eric S. Raymond
14fee6b979 Eliminate globals. 2017-06-07 14:03:33 -04:00
Eric S. Raymond
2deb1b9f7f Localize TK. 2017-06-07 10:38:18 -04:00
Eric S. Raymond
8a256a6e37 Narrow the scope of IGO. 2017-06-07 10:33:38 -04:00
Eric S. Raymond
48363ba536 Localize K2. 2017-06-07 10:25:59 -04:00
Eric S. Raymond
dad1df9796 Localize KK. 2017-06-07 10:23:06 -04:00
Eric S. Raymond
8d90b03ee4 Fully localize VERB. 2017-06-07 10:06:14 -04:00
Eric S. Raymond
0e3456069f Further narrow the scope of VERB. 2017-06-07 09:57:23 -04:00
Eric S. Raymond
cc618146e8 Localize a variable. 2017-06-07 09:46:25 -04:00
Eric S. Raymond
b2c85b36f8 OBJ is completely localized. 2017-06-07 09:03:14 -04:00
Eric S. Raymond
aba35733e7 OBJ has become local in actions1.c and diesn't have to be saved. 2017-06-07 08:59:50 -04:00
Eric S. Raymond
4fe6286cc6 LOC pulled into game structure block. 2017-06-07 07:50:09 -04:00
Eric S. Raymond
a38b61638c Global LL becomes local to command interpreter toplevel...
...and doesn't have to be saved.
2017-06-07 07:30:56 -04:00
Eric S. Raymond
2d95c3f4f5 Finish moving state arrays into game structure block. 2017-06-07 07:10:07 -04:00
Eric S. Raymond
0b02763bf0 More collecting of globals. 2017-06-07 06:38:40 -04:00
Eric S. Raymond
c1f1f2f79f Magic-number cleanup. 2017-06-07 06:24:18 -04:00
Eric S. Raymond
7f4cff1188 Bring SETUP variable into game state block
Saved separately because the kogic around this variable looks
a bit dubious and may need review.
2017-06-07 05:24:48 -04:00