* map_trap() * * Map the trap and print it out if directed. This routine assumes that the * hero can physically see the location. */
| 293 | * hero can physically see the location. |
| 294 | */ |
| 295 | void |
| 296 | map_trap(struct trap *trap, int show) |
| 297 | { |
| 298 | coordxy x = trap->tx, y = trap->ty; |
| 299 | int glyph = trap_to_glyph(trap); |
| 300 | |
| 301 | if (svl.level.flags.hero_memory) |
| 302 | levl[x][y].glyph = glyph; |
| 303 | if (show) |
| 304 | show_glyph(x, y, glyph); |
| 305 | } |
| 306 | |
| 307 | /* |
| 308 | * map_engraving() |
no test coverage detected