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

Function under_ground

src/display.c:1444–1467  ·  view source on GitHub ↗

* under_ground() * * Very restricted display. You can only see yourself. */

Source from the content-addressed store, hash-verified

1442 * Very restricted display. You can only see yourself.
1443 */
1444void
1445under_ground(int mode)
1446{
1447 static boolean dela;
1448
1449 /* swallowing has a higher precedence than under ground */
1450 if (u.uswallow)
1451 return;
1452
1453 /* full update */
1454 if (mode == 1 || dela) {
1455 cls();
1456 dela = FALSE;
1457
1458 /* delayed full update */
1459 } else if (mode == 2) {
1460 dela = TRUE;
1461 return;
1462
1463 /* limited update */
1464 } else {
1465 newsym(u.ux, u.uy);
1466 }
1467}
1468
1469/* ======================================================================== */
1470

Callers 5

allmain.cFile · 0.85
map_redisplayFunction · 0.85
bury_youFunction · 0.85
unearth_youFunction · 0.85
docrt_flagsFunction · 0.85

Calls 2

clsFunction · 0.85
newsymFunction · 0.85

Tested by

no test coverage detected