skip update_inventory during character init

With a debugging pline() in place, I could see that tty perm_invent
was being redrawn for each item added to hero's initial inventory.
Avoid that.  There is an update_inventory() call just prior to
entering moveloop() which handles all of starting invent as a unit.
This commit is contained in:
PatR
2022-06-23 13:14:28 -07:00
parent 64c1f83dd8
commit d8377fe091

View File

@@ -2407,6 +2407,8 @@ update_inventory(void)
{
int save_suppress_price;
if (!g.program_state.in_moveloop) /* not covered by suppress_map_output */
return;
if (suppress_map_output()) /* despite name, used for perm_invent too */
return;