Mercurial > hg > early-roguelike
diff 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 |
line wrap: on
line diff
--- a/urogue/options.c Sun Feb 11 15:37:33 2018 -0500 +++ b/urogue/options.c Fri Nov 22 21:18:27 2019 -0500 @@ -29,15 +29,19 @@ /* description of an option and what to do with it */ static OPTION optlist[] = { -{"jump","Show position only at end of run (jump): ", &jump,put_bool,get_bool}, -{"inven","Style of inventories (inven): ", &inv_type, put_inv, get_inv}, -{"askme","Ask me about unidentified things (askme): ",&askme,put_bool,get_bool}, -{"doorstop","Stop running when adjacent (doorstop): ",&doorstop,put_bool,get_bool}, -{"name", "Name (name): ", &whoami, put_str, get_restr}, -{"fruit", "Fruit (fruit): ", &fruit, put_str, get_str}, -{"file", "Save file (file): ", &file_name, put_str, get_restr}, -{"score", "Score file (score): ", &score_file, put_str, get_score}, -{"class", "Character class (class): ",&char_type, put_abil, get_abil} + {"jump","Show position only at end of run (jump): ", { &jump }, + put_bool, get_bool}, + {"inven","Style of inventories (inven): ", { &inv_type }, + put_inv, get_inv}, + {"askme","Ask me about unidentified things (askme): ", { &askme}, + put_bool, get_bool}, + {"doorstop","Stop running when adjacent (doorstop): ", { &doorstop }, + put_bool, get_bool}, + {"name", "Name (name): ", { &whoami }, put_str, get_restr}, + {"fruit", "Fruit (fruit): ", { &fruit }, put_str, get_str}, + {"file", "Save file (file): ", { &file_name }, put_str, get_restr}, + {"score", "Score file (score): ", { &score_file }, put_str, get_score}, + {"class", "Character class (class): ", { &char_type }, put_abil, get_abil} }; /*