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

Function check_restriction

src/ball.c:179–189  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

177}
178
179staticfn boolean
180check_restriction(int restriction)
181{
182 boolean ret = FALSE;
183
184 if (!bcrestriction || (restriction == override_restriction))
185 ret = TRUE;
186 else
187 ret = (bcrestriction == restriction) ? TRUE : FALSE;
188 return ret;
189}
190
191#ifndef BREADCRUMBS
192void

Callers 4

placebcFunction · 0.85
lift_covet_and_placebcFunction · 0.85
PlacebcFunction · 0.85
Lift_covet_and_placebcFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected