striking/force-bolt comment
I'm not sure whether newsym_force() is still necessary, but add a comment about why it's being used in bhito().
This commit is contained in:
14
src/zap.c
14
src/zap.c
@@ -2137,14 +2137,16 @@ bhito(struct obj *obj, struct obj *otmp)
|
|||||||
You_hear("a crumbling sound.");
|
You_hear("a crumbling sound.");
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
int oox = obj->ox;
|
int oox = obj->ox, ooy = obj->oy;
|
||||||
int ooy = obj->oy;
|
|
||||||
if (gc.context.mon_moving
|
if (gc.context.mon_moving ? !breaks(obj, oox, ooy)
|
||||||
? !breaks(obj, obj->ox, obj->oy)
|
: !hero_breaks(obj, oox, ooy, 0))
|
||||||
: !hero_breaks(obj, obj->ox, obj->oy, 0))
|
|
||||||
maybelearnit = FALSE; /* nothing broke */
|
maybelearnit = FALSE; /* nothing broke */
|
||||||
else
|
else
|
||||||
newsym_force(oox,ooy);
|
/* obj broke; force redisplay in case it was the only--
|
||||||
|
or last--item under non-breaking pile-top; top item
|
||||||
|
here might now be a lone object rather than a pile */
|
||||||
|
newsym_force(oox, ooy);
|
||||||
res = 0;
|
res = 0;
|
||||||
}
|
}
|
||||||
if (maybelearnit)
|
if (maybelearnit)
|
||||||
|
|||||||
Reference in New Issue
Block a user