MCPcopy Create free account
hub / github.com/DescentDevelopers/Descent3 / grtext_Init

Function grtext_Init

grtext/grtext.cpp:221–230  ·  view source on GitHub ↗

Right now this just decrypts the bad words

Source from the content-addressed store, hash-verified

219void grtext_SetProfanityFilter(bool enabled) { grtext_FilterProfanity = enabled; }
220// Right now this just decrypts the bad words
221void grtext_Init() {
222 for (auto & bad_word : bad_words) {
223 int pos = 0;
224
225 while (bad_word[pos]) {
226 bad_word[pos] = bad_word[pos] ^ XORVAL;
227 pos++;
228 }
229 }
230}
231
232// macro to get character width
233static inline int CHAR_WIDTH(int font, int ch) { return (int)(grfont_GetCharWidth(font, ch) * Grtext_scale); }

Callers 3

WinMainFunction · 0.85
InitSystemsFunction · 0.85
PreInitD3SystemsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected