diff options
author | lonkaars <loek@pipeframe.xyz> | 2022-06-26 22:03:36 +0200 |
---|---|---|
committer | lonkaars <loek@pipeframe.xyz> | 2022-06-26 22:03:36 +0200 |
commit | 0b50dfe730d87ff052ef08f0dd6df6071d50aef9 (patch) | |
tree | b87ef18d3bad97483b573c2469c1e28c7359f0df /client/ui_orders.c | |
parent | 2a0270f3ba6eb993fb39ed3564f626d724156654 (diff) |
update sim, fix readme brainfarts & fix bomd command
Diffstat (limited to 'client/ui_orders.c')
-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); |