tell the clients that a player is [not] typing a message
| 8364 | |
| 8365 | // tell the clients that a player is [not] typing a message |
| 8366 | void MultiSendTypeIcon(int pnum, bool typing_message) { |
| 8367 | int count = 0; |
| 8368 | uint8_t data[MAX_GAME_DATA_SIZE]; |
| 8369 | int size_offset; |
| 8370 | size_offset = START_DATA(MP_SEND_TYPE_ICON, data, &count); |
| 8371 | MultiAddByte(pnum, data, &count); |
| 8372 | MultiAddByte((typing_message) ? 1 : 0, data, &count); |
| 8373 | END_DATA(count, data, size_offset); |
| 8374 | MultiSendReliablyToAllExcept(Player_num, data, count, NETSEQ_PLAYERS, false); |
| 8375 | MultiDoTypeIcon(data); |
| 8376 | } |
| 8377 | |
| 8378 | // process a request by a client that he is [not] typing a message |
| 8379 | void MultiDoRequestTypeIcon(uint8_t *data) { |
no test coverage detected