fix a couple of options affecting perm_invent
When the 'O' command is used to change either 'menu_headings' or 'sortloot', inventory display can change so persistent inventory needs to be updated. Oddly, the flag to indicate initial options processing remained True after options had been processed, but that ultimately didn't matter here. It's fixed now anyway. Also, sort the WC2_xxx options in a couple of places.
This commit is contained in:
@@ -74,6 +74,7 @@ if the orc-town version of mine town has been loaded, creation of orc zombies
|
||||
when punished, involuntarily teleporting and landing within chain range of
|
||||
attached ball while encumbered worse than burdened could trigger
|
||||
"remove_object: obj not on floor" panic on hero's next move
|
||||
update persistent inventory when 'menu_headings' or 'sortloot' options change
|
||||
update persistent inventory when putting on a helmet causes it to auto-curse
|
||||
inventory cursing caused by "this water's no good" effect when drinking from
|
||||
a fountain didn't update persistent inventory window
|
||||
|
||||
+17
-5
@@ -806,13 +806,18 @@ to support:
|
||||
| player option | bit in wincap mask | for value | type |
|
||||
|--------------------+--------------------+--------------------+--------+
|
||||
| fullscreen | WC2_FULLSCREEN | wc2_fullscreen |boolean |
|
||||
| softkeyboard | WC2_SOFTKEYBOARD | wc2_softkeyboard |boolean |
|
||||
| wraptext | WC2_WRAPTEXT | wc2_wraptext |boolean |
|
||||
| selectsaved | WC2_SELECTSAVED | wc2_selectsaved |boolean |
|
||||
| guicolor | WC2_GUICOLOR | wc2_guicolor |boolean |
|
||||
| hilite_status | WC2_HILITE_STATUS | wc2_hilite_status |strings |
|
||||
| hitpointbar | WC2_HITPOINTBAR | wc2_hitpointbar |boolean |
|
||||
| term_cols | WC2_TERM_COLS | wc2_term_cols |int |
|
||||
| term_rows | WC2_TERM_ROWS | wc2_term_rows |int |
|
||||
| petattr | WC2_PETATTR | wc2_petattr |int |
|
||||
| selectsaved | WC2_SELECTSAVED | wc2_selectsaved |boolean |
|
||||
| softkeyboard | WC2_SOFTKEYBOARD | wc2_softkeyboard |boolean |
|
||||
| statuslines | WC2_STATUSLINES | wc2_statuslines |int |
|
||||
| term_cols | WC2_TERM_SIZE | wc2_term_cols |int |
|
||||
| term_rows | WC2_TERM_SIZE | wc2_term_rows |int |
|
||||
| use_darkgray | WC2_DARKGRAY | wc2_darkgray |boolean |
|
||||
| windowborders | WC2_WINDOWBORDERS | wc2_windowborders |int |
|
||||
| wraptext | WC2_WRAPTEXT | wc2_wraptext |boolean |
|
||||
+--------------------+--------------------+--------------------+--------+
|
||||
|
||||
more wincap2 for STATUS_HILITES support and control
|
||||
@@ -829,6 +834,13 @@ to support:
|
||||
| fields should be redone | |
|
||||
+----------------------------------+---------------------------+
|
||||
|
||||
additional wincap2 flag bits for supported putstr() attributes
|
||||
+----------------------------------+---------------------------+
|
||||
| avoid putting message into | WC2_SUPPRESS_HIST |
|
||||
| recall history | |
|
||||
| draw extra attention to message | WC2_URGENT_MESG |
|
||||
+----------------------------------+---------------------------+
|
||||
|
||||
align_message -- where to place message window (top, bottom, left, right)
|
||||
align_status -- where to place status display (top, bottom, left, right).
|
||||
ascii_map -- port should display an ascii map if it can.
|
||||
|
||||
Reference in New Issue
Block a user