From e503714013ff86710c2043f4c8c16dc80a8c5562 Mon Sep 17 00:00:00 2001 From: cohrs Date: Tue, 2 Apr 2002 01:18:13 +0000 Subject: [PATCH] disappearing burdened message - the "Burdened" message could disappear from the status line if it was updated partway thru in_container, clearing the bot flags. Re-order message so it comes after add_to_container, as in 3.3.1. --- doc/fixes34.1 | 2 ++ src/pickup.c | 6 +++--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/doc/fixes34.1 b/doc/fixes34.1 index 858321972..878e96830 100644 --- a/doc/fixes34.1 +++ b/doc/fixes34.1 @@ -48,6 +48,8 @@ cannot sacrifice while you're swallowed player polymorphed into an eel cannot drown breathless/amphibious monsters avoid dmonsfree impossible message due to migrating a dead monster via mhurtle causing the monster to end up in a hole or other trap +avoid temporary disappearing Burdened message due to updating status line + midway thru in_container Platform- and/or Interface-Specific Fixes diff --git a/src/pickup.c b/src/pickup.c index c87452b4a..51d26e81f 100644 --- a/src/pickup.c +++ b/src/pickup.c @@ -1792,11 +1792,11 @@ register struct obj *obj; } if (current_container) { - Strcpy(buf, the(xname(current_container))); - You("put %s into %s.", doname(obj), buf); - (void) add_to_container(current_container, obj); current_container->owt = weight(current_container); + + Strcpy(buf, the(xname(current_container))); + You("put %s into %s.", doname(obj), buf); } if (is_gold) bot(); /* update gold piece count immediately */