]> granicus.if.org Git - nethack/commitdiff
disappearing burdened message
authorcohrs <cohrs>
Tue, 2 Apr 2002 01:18:13 +0000 (01:18 +0000)
committercohrs <cohrs>
Tue, 2 Apr 2002 01:18:13 +0000 (01:18 +0000)
- 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
src/pickup.c

index 858321972ba29087a84798059552630a8153014b..878e968302279940e80e2f32f63c095616a2dd0a 100644 (file)
@@ -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
index c87452b4a9e4af8973df78608524e5474d153093..51d26e81f68dcc1c95fc15e2e12de0dc44fcabed 100644 (file)
@@ -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 */