M36 - can see through polymorphed boulder

The vision matrix was updated in the boulder->statue case, but
not in the statue->boulder case.
This commit is contained in:
cohrs
2005-03-28 18:24:35 +00:00
parent 085af405d6
commit a3341e071b
2 changed files with 4 additions and 0 deletions

View 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

View File

@@ -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 ** */