* wrapper to make "near this object" convenient */
| 3640 | * wrapper to make "near this object" convenient |
| 3641 | */ |
| 3642 | struct obj * |
| 3643 | obj_nexto(struct obj *otmp) |
| 3644 | { |
| 3645 | if (!otmp) { |
| 3646 | impossible("obj_nexto: wasn't given an object to check"); |
| 3647 | return (struct obj *) 0; |
| 3648 | } |
| 3649 | return obj_nexto_xy(otmp, otmp->ox, otmp->oy, TRUE); |
| 3650 | } |
| 3651 | |
| 3652 | /* |
| 3653 | * looks for objects of a particular type next to x, y |
no test coverage detected