rather than intended stairs down
dumplog's list of "major events" showed all logged events, not just major ones
pickup via menu ignored player-specified count when picking up gold
+changes in encumbrance sometimes went unreported, leaving stale status line
+ info until hero's next move
curses: 'msg_window' option wasn't functional for curses unless the binary
also included tty support
inventory may have changed in, e.g., nh_timeout(); we do
need two checks here so that the player gets feedback
immediately if their own action encumbered them */
- encumber_msg();
+ (void) encumber_msg();
#ifdef STATUS_HILITES
if (iflags.hilite_delta)
/* [this used to test 'if (uwep != uball)' but that always passes
after the setuwep() above] */
freeinv(uball); /* remove from inventory but don't place on floor */
- encumber_msg();
+ (void) encumber_msg();
}
}
otense(otmp, "fall"));
freeinv(otmp);
hitfloor(otmp, FALSE);
- encumber_msg(); /* drop[xyz]() probably ought to to this... */
}
}
}
map_object(obj, 0);
newsym(u.ux, u.uy); /* remap location under self */
}
+ (void) encumber_msg();
}
/* when swallowed, move dropped object from OBJ_FREE to u.ustuck's inventory;
}
freeinv(otmp);
throwit(otmp, wep_mask, twoweap, oldslot);
+ (void) encumber_msg();
}
g.m_shot.n = g.m_shot.i = 0;
g.m_shot.o = STRANGE_OBJECT;
prinv(hold_msg, obj, oquan);
/* obj made it into inventory and is staying there */
update_inventory();
- encumber_msg();
+ (void) encumber_msg();
}
}
return obj;
urgent_pline("%s%s stole %s.", named ? "She" : Monnam(mtmp),
(was_punished && !Punished) ? " removed your chain and" : "",
doname(otmp));
+ (void) encumber_msg();
could_petrify = (otmp->otyp == CORPSE
&& touch_petrifies(&mons[otmp->corpsenm]));
(void) mpickobj(mtmp, otmp); /* may free otmp */
pline("%s steals %s!", Monnam(mtmp), buf);
if (can_teleport(mtmp->data) && !tele_restrict(mtmp))
(void) rloc(mtmp, RLOC_MSG);
+ (void) encumber_msg();
}
}
if (obj->unpaid)
subfrombill(obj, shop_keeper(*u.ushops));
if (cansee(mon->mx, mon->my)) {
- const char *MonName = Monnam(mon);
-
- /* mon might be invisible; avoid "It pulls ... and absorbs it!" */
- if (!strcmp(MonName, "It"))
- MonName = "Something";
- pline("%s pulls %s away from you and absorbs %s!", MonName,
+ /* Some_Monnam() avoids "It pulls ... and absorbs it!"
+ if hero can see the location but not the monster */
+ pline("%s pulls %s away from you and absorbs %s!",
+ Some_Monnam(mon), /* Monnam() or "Something" */
yname(obj), (obj->quan > 1L) ? "them" : "it");
} else {
const char *hand_s = body_part(HAND);
otense(obj, "are"), hand_s);
}
freeinv(obj);
+ (void) encumber_msg();
} else {
/* not carried; presumably thrown or kicked */
if (canspotmon(mon))
return;
}
+/* enchant wielded weapon */
int
chwepon(struct obj *otmp, int amount)
{
if (otyp != STRANGE_OBJECT)
makeknown(otyp);
if (multiple)
- encumber_msg();
+ (void) encumber_msg();
return 1;
} else if (uwep->otyp == CRYSKNIFE && amount < 0) {
multiple = (uwep->quan > 1L);
if (otyp != STRANGE_OBJECT && otmp->bknown)
makeknown(otyp);
if (multiple)
- encumber_msg();
+ (void) encumber_msg();
return 1;
}