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

Function observe_recursively

src/detect.c:248–258  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

246}
247
248staticfn void
249observe_recursively(struct obj *obj)
250{
251 struct obj *otmp;
252
253 observe_object(obj);
254 if (Has_contents(obj)) {
255 for (otmp = obj->cobj; otmp; otmp = otmp->nobj)
256 observe_recursively(otmp);
257 }
258}
259
260/* Check whether the location has an outdated object displayed on it. */
261staticfn boolean

Callers 1

object_detectFunction · 0.85

Calls 1

observe_objectFunction · 0.85

Tested by

no test coverage detected