Commit graph

173 commits

Author SHA1 Message Date
Peje Nilsson
a6feda5307 Split saveresume to reduce complexity
Fixed a bug where current time was printed as version of advent
when loading an old savegame.
2017-06-16 14:16:02 -04:00
Eric S. Raymond
d97574d35c Magic-number elimination. 2017-06-16 08:55:53 -04:00
Eric S. Raymond
a57d93ce35 Magic-number elimination. 2017-06-16 07:00:57 -04:00
Eric S. Raymond
ec031b0417 Name another magic number. 2017-06-15 17:34:06 -04:00
Eric S. Raymond
14486d67d4 Magic-numnber elimination. 2017-06-15 12:19:06 -04:00
Eric S. Raymond
0dc78b4221 More use of manifest constants. 2017-06-15 10:59:43 -04:00
NHOrus
46bb20deb3 Lowering the scope And cleaning up some warnings from static analysis 2017-06-14 15:17:02 -04:00
Eric S. Raymond
4993be4c08 Include LCG state in game saves. 2017-06-14 13:00:28 -04:00
Eric S. Raymond
dc6a5751ed Magic-number elimination. 2017-06-13 18:54:53 -04:00
Eric S. Raymond
d61cab352e Makere magic numbers for cond bits into symbols. 2017-06-13 18:38:04 -04:00
Eric S. Raymond
a3c14ba077 Abolish setup check, there's no possibility of restart.
Note, this silently breaks old saves.
2017-06-13 10:20:15 -04:00
Eric S. Raymond
760e2e3282 Remove more unused code. 2017-06-13 09:42:18 -04:00
Eric S. Raymond
fb93f9d67e Remove now-unused code. 2017-06-13 09:35:39 -04:00
Jason S. Ninneman
ca0e042952 Use strdup() instead of strncpy(). 2017-06-12 21:36:06 +00:00
Eric S. Raymond
a044f10411 Turn MOD from function to macro.
I experimented with expanding it to ((N % M) everywhere, but in context
the MOD(N, M) notation seems easier to read.
2017-06-12 17:33:21 -04:00
Eric S. Raymond
66c22301ed Add -s option.
Re-enables pasting multiline sequences to the > prompt (for making checkfiles).
2017-06-12 16:51:35 -04:00
Eric S. Raymond
a02b387999 FORTRAN line numbers returned from action() become action symbols. 2017-06-12 14:42:04 -04:00
Eric S. Raymond
7485a8a1e1 Limit visibility of ugly globals. 2017-06-11 21:07:53 -04:00
Jason S. Ninneman
a2e0c55fb4 Abolish SPEAK(). 2017-06-11 15:42:25 -07:00
Jason S. Ninneman
e81bd6de8f Add missing function prototypes. 2017-06-11 15:42:25 -07:00
Jason S. Ninneman
291ec54462 Check in dropped file. 2017-06-11 15:42:25 -07:00
Eric S. Raymond
3c78ff879b Clean up dummy macro arguments. 2017-06-11 07:29:29 -04:00
Jason S. Ninneman
1173a9a265 Use a header/source set common to both advent and the dungeon builder. 2017-06-10 13:37:26 -07:00
Eric S. Raymond
3af993abca Isolate the grotty save/resume code. Most of it will soon go away. 2017-06-10 05:38:47 -04:00
Eric S. Raymond
63e971fc4c Enable input editing with the linenoise library. 2017-06-10 05:11:29 -04:00
Eric S. Raymond
9bac28878d Replace magic linenumbers with a clearer enum. 2017-06-10 00:23:28 -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
64897f132e Abolish global variable I. 2017-06-09 11:53:02 -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
dd9bbe1f00 Because (almost) everything is done in handlers now, merge the action files. 2017-06-09 08:54:03 -04:00
Eric S. Raymond
21adfe0807 More vocabulary handlers. 2017-06-09 02:12:59 -04:00
John Boyle
dbe2acd864 Reassure compiler ("control may reach end of non-void function") 2017-06-08 22:50:48 -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
1386d2b157 De-gotoify carry(). 2017-06-08 02:43:40 -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
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