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

Function shrink_dlvl

win/tty/wintty.c:4870–4884  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4868}
4869
4870static void
4871shrink_dlvl(int lvl)
4872{
4873 /* try changing Dlvl: to Dl: */
4874 char buf[BUFSZ];
4875 char *levval = strchr(status_vals[BL_LEVELDESC], ':');
4876
4877 if (levval) {
4878 dlvl_shrinklvl = lvl;
4879 Strcpy(buf, (lvl == 0) ? "Dlvl" : "Dl");
4880 Strcat(buf, levval);
4881 Strcpy(status_vals[BL_LEVELDESC], buf);
4882 tty_status[NOW][BL_LEVELDESC].lth = strlen(status_vals[BL_LEVELDESC]);
4883 }
4884}
4885
4886/*
4887 * Ensure the underlying status window data start out

Callers 1

make_things_fitFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected