MCPcopy Index your code
hub / github.com/NetHack/NetHack / obj_nexto

Function obj_nexto

src/mkobj.c:3642–3650  ·  view source on GitHub ↗

* wrapper to make "near this object" convenient */

Source from the content-addressed store, hash-verified

3640 * wrapper to make "near this object" convenient
3641 */
3642struct obj *
3643obj_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

Callers 1

make_corpseFunction · 0.85

Calls 2

obj_nexto_xyFunction · 0.85
impossibleFunction · 0.70

Tested by

no test coverage detected