diff options
Diffstat (limited to 'client')
-rw-r--r-- | client/ui_orders.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/client/ui_orders.c b/client/ui_orders.c index 6c5de27..6357c03 100644 --- a/client/ui_orders.c +++ b/client/ui_orders.c @@ -64,8 +64,9 @@ void w2_ui_orders_cmd_send() { for (int i = 0; i < g_w2_order_buffer_index; i++) { W2_CREATE_MSG_BIN(w2_s_cmd_bomd_rx, msg, bin); - msg->position = w2_bin_hton16(g_w2_order_buffer[i]); - msg->id = rand(); + msg->opcode = W2_CMD_BOMD | W2_CMDDIR_RX; + msg->id = w2_bin_hton32(rand()); + msg->position = w2_bin_hton32(g_w2_order_buffer[i]); w2_send_bin(bin); free(bin); |