update the lastseentyp at x,y */
| 2924 | |
| 2925 | /* update the lastseentyp at x,y */ |
| 2926 | void |
| 2927 | update_lastseentyp(coordxy x, coordxy y) |
| 2928 | { |
| 2929 | struct monst *mtmp; |
| 2930 | int ltyp = levl[x][y].typ; |
| 2931 | |
| 2932 | if (ltyp == DRAWBRIDGE_UP) |
| 2933 | ltyp = db_under_typ(levl[x][y].drawbridgemask); |
| 2934 | if ((mtmp = m_at(x, y)) != 0 |
| 2935 | && M_AP_TYPE(mtmp) == M_AP_FURNITURE && canseemon(mtmp)) |
| 2936 | ltyp = cmap_to_type(mtmp->mappearance); |
| 2937 | svl.lastseentyp[x][y] = ltyp; |
| 2938 | } |
| 2939 | |
| 2940 | /* for some cases where deferred update needs to be done immediately; |
| 2941 | hide details from caller */ |
no test coverage detected