diff --git a/doc/fixes3-7-0.txt b/doc/fixes3-7-0.txt index a7f94ed94..c67d7ae34 100644 --- a/doc/fixes3-7-0.txt +++ b/doc/fixes3-7-0.txt @@ -814,6 +814,10 @@ give a message when a trapped monster frees itself from some trap change kitchen sink glyph to a white { killed wood golem has a chance to also drop small shields, clubs, elven spears, and boomerangs +discovering an object on first turn with persistent inventory enabled might + not update inventory info for that item (autopickup a blank scroll + or spellbook and read it as first action; it becomes discovered but + will still be shown as if undiscovered until next inventory update) Fixes to 3.7.0-x Problems that Were Exposed Via git Repository diff --git a/src/o_init.c b/src/o_init.c index 8a4a72b30..6ad5fe0d0 100644 --- a/src/o_init.c +++ b/src/o_init.c @@ -444,8 +444,8 @@ discover_object(int oindx, boolean mark_as_known, boolean credit_hero) if (credit_hero) exercise(A_WIS, TRUE); } - /* moves==1L => initial inventory, gameover => final disclosure */ - if (g.moves > 1L && !g.program_state.gameover) { + /* !in_moveloop => initial inventory, gameover => final disclosure */ + if (g.program_state.in_moveloop && !g.program_state.gameover) { if (objects[oindx].oc_class == GEM_CLASS) gem_learned(oindx); /* could affect price of unpaid gems */ update_inventory();