* Return TRUE if the given monster will stay on the level when the * level is saved. */
| 2581 | * level is saved. |
| 2582 | */ |
| 2583 | staticfn boolean |
| 2584 | mon_is_local(struct monst *mon) |
| 2585 | { |
| 2586 | struct monst *curr; |
| 2587 | |
| 2588 | for (curr = gm.migrating_mons; curr; curr = curr->nmon) |
| 2589 | if (curr == mon) |
| 2590 | return FALSE; |
| 2591 | /* `gm.mydogs' is used during level changes, never saved and restored */ |
| 2592 | for (curr = gm.mydogs; curr; curr = curr->nmon) |
| 2593 | if (curr == mon) |
| 2594 | return FALSE; |
| 2595 | return TRUE; |
| 2596 | } |
| 2597 | |
| 2598 | /* |
| 2599 | * Return TRUE if the timer is attached to something that will stay on the |
no outgoing calls
no test coverage detected