| 1584 | } |
| 1585 | |
| 1586 | struct obj * |
| 1587 | o_on(unsigned int id, struct obj *objchn) |
| 1588 | { |
| 1589 | struct obj *temp; |
| 1590 | |
| 1591 | while (objchn) { |
| 1592 | if (objchn->o_id == id) |
| 1593 | return objchn; |
| 1594 | if (Has_contents(objchn) && (temp = o_on(id, objchn->cobj))) |
| 1595 | return temp; |
| 1596 | objchn = objchn->nobj; |
| 1597 | } |
| 1598 | return (struct obj *) 0; |
| 1599 | } |
| 1600 | |
| 1601 | boolean |
| 1602 | obj_here(struct obj *obj, coordxy x, coordxy y) |