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

Function init_showsyms

src/symbols.c:94–109  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

92}
93
94void
95init_showsyms(void)
96{
97 int i;
98
99 for (i = 0; i < MAXPCHARS; i++)
100 gs.showsyms[i + SYM_OFF_P] = defsyms[i].sym;
101 for (i = 0; i < MAXOCLASSES; i++)
102 gs.showsyms[i + SYM_OFF_O] = def_oc_syms[i].sym;
103 for (i = 0; i < MAXMCLASSES; i++)
104 gs.showsyms[i + SYM_OFF_M] = def_monsyms[i].sym;
105 for (i = 0; i < WARNCOUNT; i++)
106 gs.showsyms[i + SYM_OFF_W] = def_warnsyms[i].sym;
107 for (i = 0; i < MAXOTHER; i++)
108 gs.showsyms[i + SYM_OFF_X] = get_othersym(i, PRIMARYSET);
109}
110
111/* initialize defaults for the overrides to the rogue symset */
112void

Callers 2

init_symbolsFunction · 0.85
switch_symbolsFunction · 0.85

Calls 1

get_othersymFunction · 0.85

Tested by

no test coverage detected