]> granicus.if.org Git - nethack/commitdiff
M36 - can see through polymorphed boulder
authorcohrs <cohrs>
Mon, 28 Mar 2005 18:24:35 +0000 (18:24 +0000)
committercohrs <cohrs>
Mon, 28 Mar 2005 18:24:35 +0000 (18:24 +0000)
The vision matrix was updated in the boulder->statue case, but
not in the statue->boulder case.

doc/fixes34.4
src/zap.c

index 5b188749fc24367e3ce69d73dc503ca7272ecc7a..f095dbe2694222467758c6699252a345d5a31fde 100644 (file)
@@ -107,6 +107,7 @@ fix various places that "finally finished" could be displayed after the hero
 fix some cases where movement was disallowed but the hero was still conscious
 after destroying drawbridge, hero could appear to be in the wall
 sometimes shop items which hero is forced to buy could be sold back twice
+vision was not updated when polymorphing a statue into a boulder
 
 
 Platform- and/or Interface-Specific Fixes
index 911c3760fb35418ae05a3391dc49c56a5fe5ed6d..9b64da537cadd8429f43bd2acd428618b7075e40 100644 (file)
--- a/src/zap.c
+++ b/src/zap.c
@@ -1419,6 +1419,9 @@ no_unwear:
        if (obj_location == OBJ_FLOOR && obj->otyp == BOULDER &&
                otmp->otyp != BOULDER)
            unblock_point(obj->ox, obj->oy);
+       else if (obj_location == OBJ_FLOOR && obj->otyp != BOULDER &&
+               otmp->otyp == BOULDER)
+           block_point(obj->ox, obj->oy);
 
        /* ** we are now done adjusting the object ** */