used to decide whether there are any achievements to display */
| 2491 | |
| 2492 | /* used to decide whether there are any achievements to display */ |
| 2493 | int |
| 2494 | count_achievements(void) |
| 2495 | { |
| 2496 | int i, acnt = 0; |
| 2497 | |
| 2498 | for (i = 0; u.uachieved[i]; ++i) |
| 2499 | ++acnt; |
| 2500 | return acnt; |
| 2501 | } |
| 2502 | |
| 2503 | /* convert a rank index to an achievement number; encode it when female |
| 2504 | in order to subsequently report gender-specific ranks accurately */ |
no outgoing calls
no test coverage detected