Mercurial > hg > early-roguelike
comparison urogue/options.c @ 300:0250220d8cdd
Fix an assortment of compiler warnings.
A few potential bugs were removed in the process. Much code cleanup
remains to be done.
author | John "Elwin" Edwards |
---|---|
date | Fri, 22 Nov 2019 21:18:27 -0500 |
parents | 9dcf3344d3fd |
children | e52a8a7ad4c5 |
comparison
equal
deleted
inserted
replaced
299:74351bf23e5e | 300:0250220d8cdd |
---|---|
27 int get_score(opt_arg *opt, WINDOW *win); | 27 int get_score(opt_arg *opt, WINDOW *win); |
28 | 28 |
29 /* description of an option and what to do with it */ | 29 /* description of an option and what to do with it */ |
30 static OPTION optlist[] = | 30 static OPTION optlist[] = |
31 { | 31 { |
32 {"jump","Show position only at end of run (jump): ", &jump,put_bool,get_bool}, | 32 {"jump","Show position only at end of run (jump): ", { &jump }, |
33 {"inven","Style of inventories (inven): ", &inv_type, put_inv, get_inv}, | 33 put_bool, get_bool}, |
34 {"askme","Ask me about unidentified things (askme): ",&askme,put_bool,get_bool}, | 34 {"inven","Style of inventories (inven): ", { &inv_type }, |
35 {"doorstop","Stop running when adjacent (doorstop): ",&doorstop,put_bool,get_bool}, | 35 put_inv, get_inv}, |
36 {"name", "Name (name): ", &whoami, put_str, get_restr}, | 36 {"askme","Ask me about unidentified things (askme): ", { &askme}, |
37 {"fruit", "Fruit (fruit): ", &fruit, put_str, get_str}, | 37 put_bool, get_bool}, |
38 {"file", "Save file (file): ", &file_name, put_str, get_restr}, | 38 {"doorstop","Stop running when adjacent (doorstop): ", { &doorstop }, |
39 {"score", "Score file (score): ", &score_file, put_str, get_score}, | 39 put_bool, get_bool}, |
40 {"class", "Character class (class): ",&char_type, put_abil, get_abil} | 40 {"name", "Name (name): ", { &whoami }, put_str, get_restr}, |
41 {"fruit", "Fruit (fruit): ", { &fruit }, put_str, get_str}, | |
42 {"file", "Save file (file): ", { &file_name }, put_str, get_restr}, | |
43 {"score", "Score file (score): ", { &score_file }, put_str, get_score}, | |
44 {"class", "Character class (class): ", { &char_type }, put_abil, get_abil} | |
41 }; | 45 }; |
42 | 46 |
43 /* | 47 /* |
44 option() | 48 option() |
45 print and then set options from the terminal | 49 print and then set options from the terminal |