* Utility routine for dowhatis() used to find out the glyph displayed at * the location. This isn't necessarily the same as the glyph in the levl * structure, so we must check the "third screen". */
| 2475 | * structure, so we must check the "third screen". |
| 2476 | */ |
| 2477 | int |
| 2478 | glyph_at(coordxy x, coordxy y) |
| 2479 | { |
| 2480 | if (x < 0 || y < 0 || x >= COLNO || y >= ROWNO) |
| 2481 | return cmap_to_glyph(S_room); /* XXX */ |
| 2482 | return gg.gbuf[y][x].glyphinfo.glyph; /* _glyph_at(x,y) */ |
| 2483 | } |
| 2484 | |
| 2485 | #ifdef UNBUFFERED_GLYPHINFO |
| 2486 | glyph_info * |
no outgoing calls
no test coverage detected