| 568 | } |
| 569 | |
| 570 | staticfn boolean |
| 571 | furniture_handled(coordxy x, coordxy y, boolean madeby_u) |
| 572 | { |
| 573 | struct rm *lev = &levl[x][y]; |
| 574 | |
| 575 | if (IS_FOUNTAIN(lev->typ)) { |
| 576 | dogushforth(FALSE); |
| 577 | SET_FOUNTAIN_WARNED(x, y); /* force dryup */ |
| 578 | dryup(x, y, madeby_u); |
| 579 | } else if (IS_SINK(lev->typ)) { |
| 580 | breaksink(x, y); |
| 581 | } else if (lev->typ == DRAWBRIDGE_DOWN |
| 582 | || (is_drawbridge_wall(x, y) >= 0)) { |
| 583 | coordxy bx = x, by = y; |
| 584 | |
| 585 | /* if under the portcullis, the bridge is adjacent */ |
| 586 | (void) find_drawbridge(&bx, &by); |
| 587 | destroy_drawbridge(bx, by); |
| 588 | } else { |
| 589 | return FALSE; |
| 590 | } |
| 591 | return TRUE; |
| 592 | } |
| 593 | |
| 594 | |
| 595 | /* When will hole be finished? Very rough indication used by shopkeeper. */ |
no test coverage detected