a boulder fills a pit or a hole at x,y */
| 4007 | |
| 4008 | /* a boulder fills a pit or a hole at x,y */ |
| 4009 | void |
| 4010 | fill_pit(coordxy x, coordxy y) |
| 4011 | { |
| 4012 | struct obj *otmp; |
| 4013 | struct trap *t; |
| 4014 | |
| 4015 | if ((t = t_at(x, y)) != 0 && (is_pit(t->ttyp) || is_hole(t->ttyp)) |
| 4016 | && (otmp = sobj_at(BOULDER, x, y)) != 0) { |
| 4017 | obj_extract_self(otmp); |
| 4018 | (void) flooreffects(otmp, x, y, "settle"); |
| 4019 | } |
| 4020 | } |
| 4021 | |
| 4022 | /* stop levitating */ |
| 4023 | int |
no test coverage detected