]> granicus.if.org Git - nethack/commitdiff
shattered statue rocks
authorcohrs <cohrs>
Sat, 9 Feb 2002 04:12:48 +0000 (04:12 +0000)
committercohrs <cohrs>
Sat, 9 Feb 2002 04:12:48 +0000 (04:12 +0000)
move shattered statue rocks to the top of the pile
helps when the player is Blind, gives away less

src/zap.c

index 11f27dffc899f7d3b357919c6431c4695a1ac69b..44cb174b4e75a671f7e8e9fb4c19aa9f56bb56af 100644 (file)
--- a/src/zap.c
+++ b/src/zap.c
@@ -3693,6 +3693,8 @@ register struct obj *obj;            /* no texts here! */
        obj->onamelth = 0;              /* no names */
        obj->oxlth = 0;                 /* no extra data */
        obj->oattached = OATTACHED_NOTHING;
+       obj_extract_self(obj);          /* move rocks back on top */
+       place_object(obj, obj->ox, obj->oy);
        if(!does_block(obj->ox,obj->oy,&levl[obj->ox][obj->oy]))
            unblock_point(obj->ox,obj->oy);
        if(cansee(obj->ox,obj->oy))