… | |
… | |
1306 | ns->play_sound (sign->sound); |
1306 | ns->play_sound (sign->sound); |
1307 | else if (autoapply) |
1307 | else if (autoapply) |
1308 | ns->play_sound (sound_find ("msg_voice")); |
1308 | ns->play_sound (sound_find ("msg_voice")); |
1309 | |
1309 | |
1310 | if (ns->can_msg) |
1310 | if (ns->can_msg) |
1311 | op->contr->infobox (MSG_CHANNEL ("examine"), format ("T<%s>\n\n\n\n%s", &sign->name, &sign->msg)); |
1311 | op->contr->infobox (MSG_CHANNEL ("examine"), format ("T<%s>\n\n%s", &sign->name, &sign->msg)); |
1312 | else |
1312 | else |
1313 | { |
1313 | { |
1314 | readable_message_type *msgType = get_readable_message_type (sign); |
1314 | readable_message_type *msgType = get_readable_message_type (sign); |
1315 | const char *somemsg = format ("%u %s", autoapply ? 1 : 0, &sign->msg); |
1315 | const char *somemsg = format ("%u %s", autoapply ? 1 : 0, &sign->msg); |
1316 | draw_ext_info (NDI_UNIQUE | NDI_NAVY, 0, op, msgType->message_type, msgType->message_subtype, somemsg, &sign->msg); |
1316 | draw_ext_info (NDI_UNIQUE | NDI_NAVY, 0, op, msgType->message_type, msgType->message_subtype, somemsg, &sign->msg); |
… | |
… | |
1627 | readable_message_type *msgType = get_readable_message_type (tmp); |
1627 | readable_message_type *msgType = get_readable_message_type (tmp); |
1628 | |
1628 | |
1629 | if (player *pl = op->contr) |
1629 | if (player *pl = op->contr) |
1630 | if (client *ns = pl->ns) |
1630 | if (client *ns = pl->ns) |
1631 | if (ns->can_msg) |
1631 | if (ns->can_msg) |
1632 | pl->infobox (MSG_CHANNEL ("book"), format ("T<%s>\n\n\n\n%s", (char *)long_desc (tmp, op), &tmp->msg)); |
1632 | pl->infobox (MSG_CHANNEL ("book"), format ("T<%s>\n\n%s", (char *)long_desc (tmp, op), &tmp->msg)); |
1633 | else |
1633 | else |
1634 | draw_ext_info_format (NDI_UNIQUE | NDI_NAVY, 0, op, |
1634 | draw_ext_info_format (NDI_UNIQUE | NDI_NAVY, 0, op, |
1635 | msgType->message_type, msgType->message_subtype, |
1635 | msgType->message_type, msgType->message_subtype, |
1636 | "You open the %s and start reading.\n%s", (char *)"%s\n%s", |
1636 | "You open the %s and start reading.\n%s", (char *)"%s\n%s", |
1637 | long_desc (tmp, op), &tmp->msg); |
1637 | long_desc (tmp, op), &tmp->msg); |