fix U382 - missing map display update

> Receiving Excalibur from a fountain while blind doesn't update the
> display (i.e. the missing fountain) immediately.

     Various other topology changes had the same problem.  The display
was only being updated if the hero was invisible on the assumption that
it wouldn't matter otherwise, but a blind character who moved off the
affected location would still have the old map info (fountain, trap, &c)
shown--until he walked back onto that spot or searched next to it or
regained sight--even though the player is told about the map change as
it happens.
This commit is contained in:
nethack.rankin
2003-03-24 08:58:45 +00:00
parent cff0fb7870
commit 213bd793fd
6 changed files with 14 additions and 13 deletions

View File

@@ -849,11 +849,11 @@ dospinweb()
case SPIKED_PIT: You("spin a web, covering up the pit.");
deltrap(ttmp);
bury_objs(u.ux, u.uy);
if (Invisible) newsym(u.ux, u.uy);
newsym(u.ux, u.uy);
return(1);
case SQKY_BOARD: pline_The("squeaky board is muffled.");
deltrap(ttmp);
if (Invisible) newsym(u.ux, u.uy);
newsym(u.ux, u.uy);
return(1);
case TELEP_TRAP:
case LEVEL_TELEP:
@@ -867,12 +867,12 @@ dospinweb()
You("web over the %s.",
(ttmp->ttyp == TRAPDOOR) ? "trap door" : "hole");
deltrap(ttmp);
if (Invisible) newsym(u.ux, u.uy);
newsym(u.ux, u.uy);
return 1;
case ROLLING_BOULDER_TRAP:
You("spin a web, jamming the trigger.");
deltrap(ttmp);
if (Invisible) newsym(u.ux, u.uy);
newsym(u.ux, u.uy);
return(1);
case ARROW_TRAP:
case DART_TRAP:
@@ -897,7 +897,7 @@ dospinweb()
ttmp->tseen = 1;
ttmp->madeby_u = 1;
}
if (Invisible) newsym(u.ux, u.uy);
newsym(u.ux, u.uy);
return(1);
}