| 391 | } |
| 392 | |
| 393 | staticfn long |
| 394 | encodexlogflags(void) |
| 395 | { |
| 396 | long e = 0L; |
| 397 | |
| 398 | if (wizard) |
| 399 | e |= 1L << 0; |
| 400 | if (discover) |
| 401 | e |= 1L << 1; |
| 402 | if (!u.uroleplay.numbones) |
| 403 | e |= 1L << 2; |
| 404 | if (u.uroleplay.reroll) |
| 405 | e |= 1L << 3; |
| 406 | |
| 407 | return e; |
| 408 | } |
| 409 | |
| 410 | staticfn long |
| 411 | encodeconduct(void) |