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

Function assign_graphics

src/symbols.c:216–250  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

214}
215
216void
217assign_graphics(int whichset)
218{
219 int i;
220
221 switch (whichset) {
222 case ROGUESET:
223 /* Adjust graphics display characters on Rogue levels */
224
225 for (i = 0; i < SYM_MAX; i++)
226 gs.showsyms[i] = go.ov_rogue_syms[i] ? go.ov_rogue_syms[i]
227 : gr.rogue_syms[i];
228
229#if defined(MSDOS) && defined(TILES_IN_GLYPHMAP)
230 if (iflags.grmode)
231 tileview(FALSE);
232#endif
233 gc.currentgraphics = ROGUESET;
234 break;
235
236 case PRIMARYSET:
237 default:
238 for (i = 0; i < SYM_MAX; i++)
239 gs.showsyms[i] = go.ov_primary_syms[i] ? go.ov_primary_syms[i]
240 : gp.primary_syms[i];
241
242#if defined(MSDOS) && defined(TILES_IN_GLYPHMAP)
243 if (iflags.grmode)
244 tileview(TRUE);
245#endif
246 gc.currentgraphics = PRIMARYSET;
247 break;
248 }
249 reset_glyphmap(gm_symchange);
250}
251
252void
253switch_symbols(int nondefault)

Callers 5

optfn_IBMgraphicsFunction · 0.85
optfn_roguesymsetFunction · 0.85
do_symsetFunction · 0.85
goto_levelFunction · 0.85
dorecoverFunction · 0.85

Calls 2

tileviewFunction · 0.85
reset_glyphmapFunction · 0.85

Tested by

no test coverage detected