* under_ground() * * Very restricted display. You can only see yourself. */
| 1442 | * Very restricted display. You can only see yourself. |
| 1443 | */ |
| 1444 | void |
| 1445 | under_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 |
no test coverage detected