MCPcopy Create free account
hub / github.com/NetHack/NetHack / obj_here

Function obj_here

src/invent.c:1601–1610  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1599}
1600
1601boolean
1602obj_here(struct obj *obj, coordxy x, coordxy y)
1603{
1604 struct obj *otmp;
1605
1606 for (otmp = svl.level.objects[x][y]; otmp; otmp = otmp->nexthere)
1607 if (obj == otmp)
1608 return TRUE;
1609 return FALSE;
1610}
1611
1612struct obj *
1613g_at(coordxy x, coordxy y)

Callers 5

in_containerFunction · 0.85
eating_dangerous_corpseFunction · 0.85
eatfoodFunction · 0.85
opentinFunction · 0.85
PopeyeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected