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

Function handler_petattr

src/options.c:6151–6164  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6149}
6150
6151staticfn int
6152handler_petattr(void)
6153{
6154 int tmp
6155 = query_attr("Select pet highlight attribute", iflags.wc2_petattr);
6156
6157 if (tmp != -1) {
6158 iflags.wc2_petattr = tmp;
6159 iflags.hilite_pet = (iflags.wc2_petattr != ATR_NONE);
6160 if (!go.opt_initial)
6161 go.opt_need_redraw = TRUE;
6162 }
6163 return optn_ok;
6164}
6165
6166staticfn int
6167handler_sortloot(void)

Callers 1

optfn_petattrFunction · 0.85

Calls 1

query_attrFunction · 0.85

Tested by

no test coverage detected