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

Function gotrolefilter

src/role.c:1302–1313  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1300}
1301
1302boolean
1303gotrolefilter(void)
1304{
1305 int i;
1306
1307 if (gr.rfilter.mask)
1308 return TRUE;
1309 for (i = 0; i < SIZE(roles) - 1; ++i)
1310 if (gr.rfilter.roles[i])
1311 return TRUE;
1312 return FALSE;
1313}
1314
1315/* create a string like " !Bar !Kni" or " !chaotic" that can be
1316 put back into an RC file by #saveoptions */

Callers 2

role_menu_extraFunction · 0.85
reset_role_filteringFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected