… | |
… | |
1576 | : lev_diff < 15 ? "This book is way beyond your comprehension." |
1576 | : lev_diff < 15 ? "This book is way beyond your comprehension." |
1577 | : "This book is totally beyond your comprehension."); |
1577 | : "This book is totally beyond your comprehension."); |
1578 | return; |
1578 | return; |
1579 | } |
1579 | } |
1580 | |
1580 | |
|
|
1581 | // we currently don't use the message types for anything. |
1581 | readable_message_type *msgType = get_readable_message_type (tmp); |
1582 | // readable_message_type *msgType = get_readable_message_type (tmp); |
|
|
1583 | |
|
|
1584 | tmp->play_sound (tmp->sound ? tmp->sound : sound_find ("apply_book")); |
1582 | |
1585 | |
1583 | if (player *pl = op->contr) |
1586 | if (player *pl = op->contr) |
1584 | if (client *ns = pl->ns) |
1587 | if (client *ns = pl->ns) |
1585 | pl->infobox (MSG_CHANNEL ("book"), format ("T<%s>\n\n%s", (char *)long_desc (tmp, op), &tmp->msg)); |
1588 | pl->infobox (MSG_CHANNEL ("book"), format ("T<%s>\n\n%s", (char *)long_desc (tmp, op), &tmp->msg)); |
1586 | |
1589 | |
… | |
… | |
2673 | while (*find == ' ') |
2676 | while (*find == ' ') |
2674 | find++; |
2677 | find++; |
2675 | |
2678 | |
2676 | memset (got, 0, MAX_BUF); |
2679 | memset (got, 0, MAX_BUF); |
2677 | |
2680 | |
2678 | if ((separator = strchr (find, ';'))) |
2681 | if ((separator = (char *) strchr (find, ';'))) |
2679 | len = separator - find; |
2682 | len = separator - find; |
2680 | else |
2683 | else |
2681 | len = strlen (find); |
2684 | len = strlen (find); |
2682 | |
2685 | |
2683 | min_it (len, MAX_BUF - 1); |
2686 | min_it (len, MAX_BUF - 1); |