* When doing detection, remove stale data from the map display (corpses * rotted away, objects carried away by monsters, etc) so that it won't * reappear after the detection has completed. Return true if noticeable * change occurs. */
| 315 | * change occurs. |
| 316 | */ |
| 317 | staticfn boolean |
| 318 | clear_stale_map(char oclass, unsigned material) |
| 319 | { |
| 320 | coordxy zx, zy; |
| 321 | boolean change_made = FALSE; |
| 322 | |
| 323 | for (zx = 1; zx < COLNO; zx++) |
| 324 | for (zy = 0; zy < ROWNO; zy++) |
| 325 | if (check_map_spot(zx, zy, oclass, material)) { |
| 326 | unmap_object(zx, zy); |
| 327 | change_made = TRUE; |
| 328 | } |
| 329 | |
| 330 | return change_made; |
| 331 | } |
| 332 | |
| 333 | /* look for gold, on the floor or in monsters' possession */ |
| 334 | int |
no test coverage detected