| 1457 | } |
| 1458 | |
| 1459 | void |
| 1460 | sanity_check(void) |
| 1461 | { |
| 1462 | if (iflags.sanity_no_check) { |
| 1463 | /* in case a recurring sanity_check warning occurs, we mustn't |
| 1464 | re-trigger it when ^P is used, otherwise msg_window:Single |
| 1465 | and msg_window:Combination will always repeat the most recent |
| 1466 | instance, never able to go back to any earlier messages */ |
| 1467 | iflags.sanity_no_check = FALSE; |
| 1468 | return; |
| 1469 | } |
| 1470 | program_state.in_sanity_check++; |
| 1471 | you_sanity_check(); |
| 1472 | obj_sanity_check(); |
| 1473 | timer_sanity_check(); |
| 1474 | mon_sanity_check(); |
| 1475 | light_sources_sanity_check(); |
| 1476 | bc_sanity_check(); |
| 1477 | trap_sanity_check(); |
| 1478 | engraving_sanity_check(); |
| 1479 | levl_sanity_check(); |
| 1480 | program_state.in_sanity_check--; |
| 1481 | } |
| 1482 | |
| 1483 | /* qsort() comparison routine for use in list_migrating_mons() */ |
| 1484 | staticfn int QSORTCALLBACK |
no test coverage detected