From b616800c5460972774fa5c41f1df30de52754570 Mon Sep 17 00:00:00 2001 From: nhmall Date: Tue, 25 Dec 2018 22:13:02 -0500 Subject: [PATCH] merge follow --- src/pickup.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/pickup.c b/src/pickup.c index e9088553a..08afcc0b6 100644 --- a/src/pickup.c +++ b/src/pickup.c @@ -2087,7 +2087,7 @@ register struct obj *obj; char buf[BUFSZ]; if (!g.current_container) { - impossible(" no current_container?"); + impossible(" no g.current_container?"); return 0; } else if (obj == uball || obj == uchain) { You("must be kidding."); @@ -2142,7 +2142,7 @@ register struct obj *obj; || (obj->otyp == STATUE && bigmonst(&mons[obj->corpsenm]))) { /* * xname() uses a static result array. Save obj's name - * before current_container's name is computed. Don't + * before g.current_container's name is computed. Don't * use the result of strcpy() within You() --- the order * of evaluation of the parameters is undefined. */ @@ -2192,16 +2192,16 @@ register struct obj *obj; handle bill issues, but if on floor, we need to put them on bill before deleting them (non-shop items will be flagged 'no_charge') */ if (floor_container - && costly_spot(current_container->ox, current_container->oy)) { + && costly_spot(g.current_container->ox, g.current_container->oy)) { struct obj save_no_charge; - save_no_charge.no_charge = current_container->no_charge; - addtobill(current_container, FALSE, FALSE, FALSE); + save_no_charge.no_charge = g.current_container->no_charge; + addtobill(g.current_container, FALSE, FALSE, FALSE); /* addtobill() clears no charge; we need to set it back so that useupf() doesn't double bill */ - current_container->no_charge = save_no_charge.no_charge; + g.current_container->no_charge = save_no_charge.no_charge; } - delete_contents(current_container); + delete_contents(g.current_container); if (!floor_container) useup(g.current_container); else if (obj_here(g.current_container, u.ux, u.uy)) @@ -2254,7 +2254,7 @@ register struct obj *obj; long count; if (!g.current_container) { - impossible(" no current_container?"); + impossible(" no g.current_container?"); return -1; } else if (is_gold) { obj->owt = weight(obj);