From d8377fe0910534ae9b720ea763decd2293a876c8 Mon Sep 17 00:00:00 2001 From: PatR Date: Thu, 23 Jun 2022 13:14:28 -0700 Subject: [PATCH] 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. --- src/invent.c | 2 ++ 1 file changed, 2 insertions(+) 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;