fix meseta transaction command
This commit is contained in:
@@ -6393,7 +6393,7 @@ struct G_ServerVersionStrings_GC_Ep3_6xB4x46 {
|
||||
struct G_Unknown_GC_Ep3_6xB5x47 {
|
||||
G_CardBattleCommandHeader header = {0xB5, sizeof(G_Unknown_GC_Ep3_6xB5x47) / 4, 0, 0x47, 0, 0, 0};
|
||||
// Note: This command uses header_b1, which must be < 12.
|
||||
le_uint32_t unknown_a1 = 0;
|
||||
le_uint32_t clv = 0;
|
||||
} __packed__;
|
||||
|
||||
// 6xB3x48 / CAx48: End turn
|
||||
|
||||
@@ -884,11 +884,12 @@ static void on_B1(shared_ptr<ServerState> s, shared_ptr<Client> c,
|
||||
}
|
||||
}
|
||||
|
||||
static void on_BA_Ep3(shared_ptr<ServerState>,
|
||||
static void on_BA_Ep3(shared_ptr<ServerState> s,
|
||||
shared_ptr<Client> c, uint16_t command, uint32_t, const string& data) {
|
||||
const auto& in_cmd = check_size_t<C_Meseta_GC_Ep3_BA>(data);
|
||||
|
||||
S_Meseta_GC_Ep3_BA out_cmd = {1000000, 1000000, in_cmd.request_token};
|
||||
uint32_t meseta = s->ep3_infinite_meseta ? 1000000 : 0;
|
||||
S_Meseta_GC_Ep3_BA out_cmd = {meseta, meseta, in_cmd.request_token};
|
||||
send_command(c, command, 0x03, &out_cmd, sizeof(out_cmd));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user