From: PatR Date: Thu, 23 Jun 2022 20:14:28 +0000 (-0700) Subject: skip update_inventory during character init X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d8377fe0910534ae9b720ea763decd2293a876c8;p=nethack 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. --- diff --git a/src/invent.c b/src/invent.c index d8b600bc7..7d3677b41 100644 --- a/src/invent.c +++ b/src/invent.c @@ -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;