… | |
… | |
1311 | |
1311 | |
1312 | if (op->contr) |
1312 | if (op->contr) |
1313 | if (client *ns = op->contr->ns) |
1313 | if (client *ns = op->contr->ns) |
1314 | { |
1314 | { |
1315 | ns->play_sound (sign->sound); |
1315 | ns->play_sound (sign->sound); |
1316 | msgType = get_readable_message_type (sign); |
|
|
1317 | |
1316 | |
1318 | if (ns->can_msg) |
1317 | if (ns->can_msg) |
1319 | ns->send_msg (NDI_NAVY, msgType->msgtype, &sign->msg); |
1318 | op->contr->infobox (MSG_CHANNEL ("examine"), format ("T<%s>\n\n\n\n%s", &sign->name, &sign->msg)); |
1320 | else |
1319 | else |
1321 | { |
1320 | { |
1322 | char newbuf[HUGE_BUF]; |
1321 | msgType = get_readable_message_type (sign); |
1323 | snprintf (newbuf, sizeof (newbuf), "%u %s", autoapply ? 1 : 0, &sign->msg); |
1322 | const char *somemsg = format ("%u %s", autoapply ? 1 : 0, &sign->msg); |
1324 | draw_ext_info (NDI_UNIQUE | NDI_NAVY, 0, op, msgType->message_type, msgType->message_subtype, newbuf, &sign->msg); |
1323 | draw_ext_info (NDI_UNIQUE | NDI_NAVY, 0, op, msgType->message_type, msgType->message_subtype, somemsg, &sign->msg); |
1325 | } |
1324 | } |
1326 | } |
1325 | } |
1327 | } |
1326 | } |
1328 | |
1327 | |
1329 | /** |
1328 | /** |