discarding migrating objects when entering endgame
Avoid potential impossible "obfree: deleting worn object" warnings when entering the endgame. The code to get rid of items migrating to non-endgame levels passes those items to obfree(). It needs to clear obj->owornmask first because that's used for migration flags (undelivered orctown loot has a non-zero value).
This commit is contained in:
@@ -1433,9 +1433,10 @@ drop_to(coord *cc, schar loc, coordxy x, coordxy y)
|
||||
|
||||
/* player or missile impacts location, causing objects to fall down */
|
||||
void
|
||||
impact_drop(struct obj *missile, /* caused impact, won't drop itself */
|
||||
coordxy x, coordxy y, /* location affected */
|
||||
xint16 dlev) /* if !0 send to dlev near player */
|
||||
impact_drop(
|
||||
struct obj *missile, /* caused impact, won't drop itself */
|
||||
coordxy x, coordxy y, /* location affected */
|
||||
xint16 dlev) /* if !0 send to dlev near player */
|
||||
{
|
||||
schar toloc;
|
||||
register struct obj *obj, *obj2;
|
||||
|
||||
Reference in New Issue
Block a user