TTYINV vs end-of-game disclosure
If environment had TTYINV=4 (perm_invent shows worn/wielded only), disclosing inventory at end of game only showed worn and wielded items instead of full inventory. Didn't matter whether perm_invent is On or which interface is in use or whether game was built with TTY_PERM_INVENT enabled.
This commit is contained in:
@@ -5437,7 +5437,7 @@ prepare_perminvent(winid window)
|
||||
|
||||
if (!done_setting_perminv_flags) {
|
||||
/*TEMPORARY*/
|
||||
char *envtmp = nh_getenv("TTYINV");
|
||||
char *envtmp = !g.program_state.gameover ? nh_getenv("TTYINV") : 0;
|
||||
/* default for non-tty includes gold, for tty excludes gold;
|
||||
if non-tty specifies any value, gold will be excluded unless
|
||||
that value includes the show-gold bit (1) */
|
||||
|
||||
Reference in New Issue
Block a user