From a3341e071b0f1eb3bb2eb9c1d424df231a61d175 Mon Sep 17 00:00:00 2001 From: cohrs Date: Mon, 28 Mar 2005 18:24:35 +0000 Subject: [PATCH] M36 - can see through polymorphed boulder The vision matrix was updated in the boulder->statue case, but not in the statue->boulder case. --- doc/fixes34.4 | 1 + src/zap.c | 3 +++ 2 files changed, 4 insertions(+) diff --git a/doc/fixes34.4 b/doc/fixes34.4 index 5b188749f..f095dbe26 100644 --- a/doc/fixes34.4 +++ b/doc/fixes34.4 @@ -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 diff --git a/src/zap.c b/src/zap.c index 911c3760f..9b64da537 100644 --- 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 ** */