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

Function set_condition_length

win/tty/wintty.c:4843–4857  ·  view source on GitHub ↗

caller must set cond_shrinklvl (0..2) before calling us */

Source from the content-addressed store, hash-verified

4841
4842/* caller must set cond_shrinklvl (0..2) before calling us */
4843static void
4844set_condition_length(void)
4845{
4846 long mask;
4847 int c, lth = 0;
4848
4849 if (tty_condition_bits) {
4850 for (c = 0; c < SIZE(conditions); ++c) {
4851 mask = conditions[c].mask;
4852 if ((tty_condition_bits & mask) == mask)
4853 lth += 1 + (int) strlen(conditions[c].text[cond_shrinklvl]);
4854 }
4855 }
4856 tty_status[NOW][BL_CONDITION].lth = lth;
4857}
4858
4859static void
4860shrink_enc(int lvl)

Callers 1

make_things_fitFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected