| 1613 | } |
| 1614 | |
| 1615 | void DiabloHotkeyMsg(uint32_t dwMsg) |
| 1616 | { |
| 1617 | if (!IsChatAvailable()) { |
| 1618 | return; |
| 1619 | } |
| 1620 | |
| 1621 | assert(dwMsg < QUICK_MESSAGE_OPTIONS); |
| 1622 | |
| 1623 | for (auto &msg : sgOptions.Chat.szHotKeyMsgs[dwMsg]) { |
| 1624 | |
| 1625 | #ifdef _DEBUG |
| 1626 | if (CheckDebugTextCommand(msg)) |
| 1627 | continue; |
| 1628 | #endif |
| 1629 | if (CheckTextCommand(msg)) |
| 1630 | continue; |
| 1631 | char charMsg[MAX_SEND_STR_LEN]; |
| 1632 | CopyUtf8(charMsg, msg, sizeof(charMsg)); |
| 1633 | NetSendCmdString(0xFFFFFF, charMsg); |
| 1634 | } |
| 1635 | } |
| 1636 | |
| 1637 | void OpenGoldDrop(int8_t invIndex, int max) |
| 1638 | { |
no test coverage detected