MCPcopy Create free account
hub / github.com/crawl/crawl / init_char_table

Function init_char_table

crawl-ref/source/viewchar.cc:143–156  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

141}
142
143void init_char_table(char_set_type set)
144{
145 for (int i = 0; i < NUM_DCHAR_TYPES; i++)
146 {
147 char32_t c;
148 if (Options.cset_override[i])
149 c = Options.cset_override[i];
150 else
151 c = dchar_table[set][i];
152 if (wcwidth(c) != 1)
153 c = dchar_table[CSET_ASCII][i];
154 Options.char_table[i] = c;
155 }
156}
157
158char32_t dchar_glyph(dungeon_char_type dchar)
159{

Callers 4

mainFunction · 0.85
write_noise_gridMethod · 0.85
_initializeFunction · 0.85
_post_initFunction · 0.85

Calls 1

wcwidthFunction · 0.85

Tested by

no test coverage detected